Compare commits

..

No commits in common. "6adaa29ff1bbb2f1256b74243b9694f3633ac0af" and "b3d05bba21f8e2ad323e5507a0c437c71398918e" have entirely different histories.

3 changed files with 1 additions and 32 deletions

View File

@ -30,8 +30,5 @@
"service_worker": "background.js", "service_worker": "background.js",
"type": "module" "type": "module"
}, },
"options_page": "manage.html", "options_page": "manage.html"
"action": {
"default_popup": "popup.html"
}
} }

View File

@ -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>

View File

@ -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";