Browse Source

chore: build libs core with more debug info

charlie 3 years ago
parent
commit
7e3610077b
3 changed files with 2 additions and 2 deletions
  1. 1 1
      libs/src/LSPlugin.caller.ts
  2. 1 1
      libs/src/LSPlugin.core.ts
  3. 0 0
      resources/js/lsplugin.core.js

+ 1 - 1
libs/src/LSPlugin.caller.ts

@@ -266,7 +266,7 @@ class LSPluginCaller extends EventEmitter {
     return new Promise((resolve, reject) => {
       timer = setTimeout(() => {
         reject(new Error(`handshake Timeout`))
-      }, 3 * 1000) // 3secs
+      }, 8 * 1000) // 8 secs
 
       handshake
         .then((refChild: ParentAPI) => {

+ 1 - 1
libs/src/LSPlugin.core.ts

@@ -907,7 +907,7 @@ class PluginLocal extends EventEmitter<'loaded'
 
       this._dispose(cleanInjectedScripts.bind(this))
     } catch (e) {
-      debug('[Load Plugin Error] ', e)
+      console.error('[Load Plugin Error] ', e)
       this.logger?.error(e)
 
       this._status = PluginLocalLoadStatus.ERROR

File diff suppressed because it is too large
+ 0 - 0
resources/js/lsplugin.core.js


Some files were not shown because too many files changed in this diff