Compare commits
No commits in common. "6adaa29ff1bbb2f1256b74243b9694f3633ac0af" and "b3d05bba21f8e2ad323e5507a0c437c71398918e" have entirely different histories.
6adaa29ff1
...
b3d05bba21
@ -30,8 +30,5 @@
|
||||
"service_worker": "background.js",
|
||||
"type": "module"
|
||||
},
|
||||
"options_page": "manage.html",
|
||||
"action": {
|
||||
"default_popup": "popup.html"
|
||||
}
|
||||
"options_page": "manage.html"
|
||||
}
|
16
popup.html
16
popup.html
@ -1,16 +0,0 @@
|
||||
<!DOCTYPE html><html><head>
|
||||
<style>
|
||||
body {
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
}
|
||||
body div {
|
||||
margin: 2px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<h2>VRChat Emoji Manager</h2>
|
||||
<div><button id="btn1">Launch in new tab</button></div>
|
||||
<div><button id="btn2">Launch in pop up window</button></div>
|
||||
<script src="popup.js"></script>
|
||||
</body></html>
|
12
popup.js
12
popup.js
@ -1,12 +0,0 @@
|
||||
btn1.onclick = () => open("manage.html");
|
||||
btn2.onclick = () => {
|
||||
chrome.windows.create({
|
||||
url: "manage.html",
|
||||
focused: true,
|
||||
type: "popup"
|
||||
});
|
||||
};
|
||||
|
||||
var width = Math.max(btn1.clientWidth, btn2.clientWidth);
|
||||
btn1.style.width = width + "px";
|
||||
btn2.style.width = width + "px";
|
Loading…
Reference in New Issue
Block a user