Commit e981a565 by 庄欣

f

parent 3a875e64
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>web-extension</title><script defer="defer" src="/js/chunk-vendors.1e7520c3.js"></script><script defer="defer" src="/js/app.5a142d90.js"></script></head><body><noscript><strong>We're sorry but web-extension doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ No newline at end of file
var UI = chrome.runtime.getURL("ui.html");
var UI = chrome.runtime.getURL("index.html");
var icon = chrome.runtime.getURL("images/icon.png");
var uploadIcon = chrome.runtime.getURL("60616b3c6cf28.png");
let extendDom = document.createElement("div");
......@@ -27,7 +27,7 @@ fetch(UI).then(function(res) {
body.appendChild(extendDom);
}).then(() => {
app = new Vue({
el: '#__extend_dom',
render: h => h(MainUi),
data: {
loadingimg: chrome.runtime.getURL("images/loading.png"),
closeX: chrome.runtime.getURL("images/close.png"),
......@@ -545,7 +545,7 @@ fetch(UI).then(function(res) {
}
}
}
});
}).$mount("#__extend_dom");
app.onload();
});
......
......@@ -21,14 +21,17 @@
{
"matches": ["https://*.mepai.me/*"],
"css": ["/css/main.css"],
"js": ["/js/jquery.min.js", "/js/vue.runtime.js", "/js/index.js"],
"js": [ "/js/jquery.min.js", "/js/vue.runtime.js", "/js/index.js"],
"run_at": "document_end"
}
],
"web_accessible_resources": [
{
"resources": [
"ui.html",
"index.html",
"js/chunk-vendors.1e7520c3.js",
"js/app.5a142d90.js",
"images/icon.png",
"images/close.png",
"images/loading.png",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment