1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
-
-
-
-
-
-
-
- window.iglob = window.iglob || {gcs:[]}
-
-
-
-
-
-
-
- var com = ``
-
- com = `
- function impm(filename){
- var gcs = iglob.gcs
- (async () => {
- let sv = {}
- const src = filename
- // const src = chrome.extension.getURL(filename);
- const contentScript = await import(src);
- sv.filename=filename
- sv.src=src
- sv.contentScript=contentScript
- gcs.push(sv)
-
- contentScript.einit()
-
- })();
-
- }
- `
- function rej_imp(){
- clog("rej_imp!")
- }
- function res_imp(){
- clog("res_imp!")
- }
-
-
- function impm(filename){
- var gcs = iglob.gcs
- const src = filename
-
- // import(`src`).then(res_imp).catch(rej_imp)
- // import(`./imp2`).then(res_imp).catch(rej_imp)
- // import(`${src}`).then(res_imp).catch(rej_imp)
-
- /*
- (async () => {
- let sv = {}
- // const src = chrome.extension.getURL(filename);
- const contentScript = await import(src);
- sv.filename=filename
- sv.src=src
- sv.contentScript=contentScript
- gcs.push(sv)
-
- contentScript.einit()
-
- })();
-
- */
- }
-
-
- iglob.impm = impm
|