mirror of
https://github.com/ManchildProductions/binoc-central-mirror.git
synced 2026-06-23 23:28:48 +00:00
27 lines
783 B
JavaScript
27 lines
783 B
JavaScript
Components.utils.import("resource://gre/modules/Communicator.jsm");
|
|
|
|
function Startup() {
|
|
main = document.getElementById("main");
|
|
let textbox = document.createElement("textbox");
|
|
[
|
|
["id", "eula"],
|
|
["readonly", "true"],
|
|
["multiline", "true"],
|
|
["cols", "80"],
|
|
["rows", "20"],
|
|
["style", "resize: none; font-family: -moz-fixed;"],
|
|
["value", Communicator.readfile("GreD", "license.txt")]
|
|
].forEach(([name, value]) => textbox.setAttribute(name, value));
|
|
main.appendChild(textbox);
|
|
}
|
|
|
|
function onAccept() {
|
|
Communicator.service.prefs.setBoolPref("app.eula.accepted", true);
|
|
}
|
|
|
|
function onCancel() {
|
|
Communicator.service.prefs.setBoolPref("app.eula.accepted", false);
|
|
Communicator.service.startup.quit(Communicator.service.startup.eForceQuit);
|
|
}
|
|
|