mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-28 05:32:27 +01:00
Fix brokenness.
This commit is contained in:
10
common/bootstrap.js
vendored
10
common/bootstrap.js
vendored
@@ -63,6 +63,8 @@ let components = {};
|
||||
let getURI = null;
|
||||
|
||||
let JSMLoader = {
|
||||
DEBUG_HANGS: false,
|
||||
|
||||
SANDBOX: Cu.nukeSandbox,
|
||||
|
||||
get addon() addon,
|
||||
@@ -250,7 +252,13 @@ function init() {
|
||||
JSMLoader.config = manifest;
|
||||
|
||||
bootstrap_jsm = module(BOOTSTRAP);
|
||||
if (!JSMLoader.SANDBOX)
|
||||
if (JSMLoader.DEBUG_HANGS) {
|
||||
bootstrap = Services.ww.openWindow(
|
||||
null, "chrome://dactyl/content/blank.xul",
|
||||
"dactyl-parent", "chrome,dialog,titlebar", null);
|
||||
Services.scriptloader.loadSubScript(BOOTSTRAP, bootstrap);
|
||||
}
|
||||
else if (!JSMLoader.SANDBOX)
|
||||
bootstrap = bootstrap_jsm;
|
||||
else {
|
||||
bootstrap = Cu.Sandbox(Cc["@mozilla.org/systemprincipal;1"].createInstance(),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
<?xml-stylesheet href="resource://dactyl-local-skin/about.css" type="text/css"?>
|
||||
<!DOCTYPE overlay SYSTEM "dactyl://content/dtd">
|
||||
<!DOCTYPE page SYSTEM "dactyl://content/dtd">
|
||||
|
||||
<page id="about-&dactyl.name;" orient="vertical" title="About &dactyl.appName;"
|
||||
xmlns="&xmlns.xul;" xmlns:html="&xmlns.html;">
|
||||
|
||||
10
common/content/blank.xul
Normal file
10
common/content/blank.xul
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE window>
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/"?>
|
||||
|
||||
<window id="dactyl-blank-window" title="Dactyl">
|
||||
<description>Hello, there.</description>
|
||||
</window>
|
||||
|
||||
<!-- vim: set sw=2 sts=2 et: -->
|
||||
Reference in New Issue
Block a user