浏览代码

fix: 取消调试

Gaokun Wang 5 天之前
父节点
当前提交
323b290899
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      electron/main/index.ts

+ 0 - 9
electron/main/index.ts

@@ -16,15 +16,6 @@ function createWindow(): void {
     }
   })
 
-  // 或者在加载前设置 CSP
-  mainWindow.webContents.on('did-finish-load', () => {
-    mainWindow.webContents.insertCSS(`
-    meta[http-equiv="Content-Security-Policy"] {
-      content: "default-src 'self'; connect-src 'self' ws://127.0.0.1:8899";
-    }
-  `)
-  })
-
   mainWindow.on('ready-to-show', () => {
     // 最大化
     mainWindow.maximize()