|
@@ -302,7 +302,7 @@ class ViewportScreenshotHelper extends PluginComponent {
|
|
private copyToClipboardTask() {
|
|
private copyToClipboardTask() {
|
|
const cb = navigator.clipboard as any;
|
|
const cb = navigator.clipboard as any;
|
|
|
|
|
|
- if (!cb.write) {
|
|
|
|
|
|
+ if (!cb?.write) {
|
|
this.plugin.log.error('clipboard.write not supported!');
|
|
this.plugin.log.error('clipboard.write not supported!');
|
|
return;
|
|
return;
|
|
}
|
|
}
|