This commit is contained in:
xu_yanfeng
2024-01-09 18:11:40 +08:00
parent 47744fd87e
commit 3b9726f284
4 changed files with 9 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
export function injectScript(url: string) {
if (chrome && chrome.extension && chrome.extension.getURL) {
let content = chrome.extension.getURL(url)
console.log(`[cc-inspector]注入脚本:${content}`);
console.log(`[cc-inspector] inject script: ${content}`);
const script = document.createElement("script")
script.setAttribute("type", "text/javascript")
script.setAttribute("src", content)
@@ -12,7 +12,6 @@ export function injectScript(url: string) {
}
}
interface LogOptions {
data: any;
flag?: string;