修复 lay.clipboard.writeText IE8 下报错的问题

修复 lay.clipboard.writeText IE8 下报错的问题,catch 是保留字
pull/1363/head
morning-star 1 year ago committed by GitHub
parent 818bfb6466
commit 5a00d0a32f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -318,7 +318,7 @@
try { try {
navigator.clipboard.writeText(text).then( navigator.clipboard.writeText(text).then(
options.done options.done
).catch(options.error); ).['catch'](options.error);
} catch(e) { } catch(e) {
var elem = document.createElement('textarea'); var elem = document.createElement('textarea');

Loading…
Cancel
Save