Skip to content

Commit

Permalink
Define the windowId before using it.
Browse files Browse the repository at this point in the history
Fixes #2139
  • Loading branch information
arantius committed Apr 28, 2015
1 parent e146fac commit ba63ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/framescript.js
Expand Up @@ -256,8 +256,8 @@ ContentObserver.prototype.runScripts = function(aRunWhen, aContentWin) {

if (!GM_util.isGreasemonkeyable(url)) return;

var scriptRunner = gScriptRunners[windowId];
var windowId = GM_util.windowId(aContentWin);
var scriptRunner = gScriptRunners[windowId];
if (!scriptRunner) {
scriptRunner = new ScriptRunner(aContentWin, url);
gScriptRunners[windowId] = scriptRunner;
Expand Down

0 comments on commit ba63ca2

Please sign in to comment.