mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
ClipboardJS: Removed PhantomJS Dependency
Added karma-chrome-launcher dependency Signed-off-by: ossdev <ossdev@puresoftware.com>
This commit is contained in:
@ -137,7 +137,7 @@ class ClipboardAction {
|
||||
if (this.trigger) {
|
||||
this.trigger.focus();
|
||||
}
|
||||
|
||||
document.activeElement.blur();
|
||||
window.getSelection().removeAllRanges();
|
||||
}
|
||||
|
||||
|
@ -86,10 +86,10 @@ class Clipboard extends Emitter {
|
||||
*/
|
||||
static isSupported(action = ['copy', 'cut']) {
|
||||
const actions = (typeof action === 'string') ? [action] : action;
|
||||
let support = !!document.queryCommandSupported;
|
||||
let support = !document.queryCommandSupported;
|
||||
|
||||
actions.forEach((action) => {
|
||||
support = support && !!document.queryCommandSupported(action);
|
||||
support = support && !document.queryCommandSupported(action);
|
||||
});
|
||||
|
||||
return support;
|
||||
|
Reference in New Issue
Block a user