-
Notifications
You must be signed in to change notification settings - Fork 4k
Add isSupported method #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Created the isSupported method for getting the support of a given action, or all actions if no action is given.
Fixed the default value setting.
Added tests for the isSupported method.
Ran the build script.
@zenorocha would be nice to have this merged |
Firefox38 can not use copy,but this check return true. |
Did you enable the clipboard capability in the user.js preference file? If you did, then I don't think that this is a problem with the method itself. |
@itaisteinherz Thank you for your answers. Is there a way to check |
@xiwc You could get the browser type and version using this module or this answer from Stack Overflow. Then, if the isSupported method returns true, the browser type is Firefox and the version number is lower than 41, the clipboard capability is enabled. If the browser type is Firefox, the version number is greater than 41 but the isSupported method returns false, the clipboard capability is disabled. |
@itaisteinherz got, thks. |
Sorry for taking so long to merge @itaisteinherz. Thanks a lot! |
This reverts commit ec2b25f.
This reverts commit 256cdd4.
This fixes #337.