1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-31 14:22:27 +01:00

Another stab at nuking bootstrap.js sandbox at shutdown. We'll see how this goes...

This commit is contained in:
Kris Maglione
2014-02-16 16:55:01 -08:00
parent 70a5fc23ed
commit 08e00164b2
3 changed files with 13 additions and 6 deletions

View File

@@ -826,8 +826,10 @@ var JavaScript = Module("javascript", {
leave: function leave(params) {
leave.superapply(this, arguments);
if (!params.push)
if (!params.push) {
modes.delay(function () { modes.pop(); });
Cu.nukeSandbox(this.context);
}
},
updatePrompt: function updatePrompt() {