@whitesev/utils 2.11.4 → 2.11.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@whitesev/utils",
4
- "version": "2.11.4",
4
+ "version": "2.11.5",
5
5
  "description": "一个常用的工具库",
6
6
  "keywords": [
7
7
  "ScriptCat",
package/src/Utils.ts CHANGED
@@ -2620,8 +2620,7 @@ class Utils {
2620
2620
  }
2621
2621
  async init() {
2622
2622
  let copyStatus = false;
2623
- const requestPermissionStatus = await this.requestClipboardPermission();
2624
- console.log(requestPermissionStatus);
2623
+ await this.requestClipboardPermission();
2625
2624
  if (this.hasClipboard() && (this.hasClipboardWrite() || this.hasClipboardWriteText())) {
2626
2625
  try {
2627
2626
  copyStatus = await this.copyDataByClipboard();