1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 20:14:11 +01:00

Fix some startup bottlenecks.

This commit is contained in:
Kris Maglione
2015-12-21 00:52:38 -08:00
parent 5a42ae42d6
commit 7aabc153f5
8 changed files with 136 additions and 69 deletions

View File

@@ -306,6 +306,11 @@ var MOW = Module("mow", {
set: function set_mowVisible(value) {
this.widgets.mowContainer.collapsed = !value;
// Don't block on the MOW iframe loading if we don't
// actually need it.
if (!value && !commandline.multilineOutputReady)
return;
let elem = this.widget;
if (!value && elem && elem.contentWindow == document.commandDispatcher.focusedWindow) {