Skip to content

Commit fbb0897

Browse files
author
hoang.tran12
committed
optimize
1 parent a24d960 commit fbb0897

File tree

2 files changed

+2
-52
lines changed

2 files changed

+2
-52
lines changed

scripts/content-scripts/document_start.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
// run all scripts that has onDocumentStart event
2121
(async () => {
22-
injectScript(
22+
import(
2323
chrome.runtime.getURL(
2424
"/scripts/content-scripts/scripts/ufs_global_webpage_context.js"
2525
)
@@ -38,9 +38,7 @@
3838
})
3939
);
4040

41-
injectScript(
42-
chrome.runtime.getURL("/scripts/content-scripts/run_scripts.js")
43-
);
41+
import(chrome.runtime.getURL("/scripts/content-scripts/run_scripts.js"));
4442
})();
4543

4644
// Run script on user click (if clicked script has onClickContentScript event)

scripts/content-scripts/utils.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)