1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 12:52:28 +01:00

Minor cleanup.

This commit is contained in:
Kris Maglione
2011-02-07 23:12:09 -05:00
parent 9f0cecb9f7
commit 0290f6ebcd
4 changed files with 14 additions and 15 deletions

View File

@@ -1191,8 +1191,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
case dactyl.NEW_WINDOW:
let win = window.openDialog(document.documentURI, "_blank", "chrome,all,dialog=no");
while (win.document.readyState != "complete")
util.threadYield();
util.waitFor(function () win.document.readyState === "complete");
browser = win.getBrowser();
// FALLTHROUGH
case dactyl.CURRENT_TAB: