@lark-apaas/miaoda-presets 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/overlay/index.js +2 -2
- package/package.json +1 -1
package/lib/overlay/index.js
CHANGED
|
@@ -135,8 +135,8 @@ async function copyToClipboard(text) {
|
|
|
135
135
|
return fallbackCopyToClipboard(text);
|
|
136
136
|
}
|
|
137
137
|
catch (error) {
|
|
138
|
-
|
|
139
|
-
return
|
|
138
|
+
// 执行navigator.clipboard.writeText失败时,降级方案
|
|
139
|
+
return fallbackCopyToClipboard(text);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
// 获取父窗口 origin
|