Skip to content

Commit f8829ea

Browse files
committed
Fix paste button shown on unsupported browser
1 parent 08d97f8 commit f8829ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2031,7 +2031,7 @@ function inizializeToolbar() {
20312031
editors[idEditor].focus();
20322032
});
20332033

2034-
var clipboardSupport = typeof(navigator.clipboard)=='undefined' ? false : true;
2034+
var clipboardSupport = typeof(navigator.clipboard.readText)=='undefined' ? false : true;
20352035

20362036
if (clipboardSupport) {
20372037
$('#btn-paste').on('click', function () {

0 commit comments

Comments
 (0)