Skip to content

Commit

Permalink
Copy to clipboard: Fix test for native Clipboard. Fix #1241
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Dec 5, 2017
1 parent f41c5cd commit e7b5e82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/copy-to-clipboard/prism-copy-to-clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

var Clipboard = window.Clipboard || undefined;

if (/(native code)/.test(Clipboard.toString())) {
if (Clipboard && /(native code)/.test(Clipboard.toString())) {
Clipboard = undefined;
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e7b5e82

Please sign in to comment.