Skip to content

Commit

Permalink
bug fix: some delayed injections were not happening
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Vold authored and arantius committed Nov 12, 2010
1 parent bbc61b3 commit 9c5ff18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/scriptdownloader.js
Expand Up @@ -234,7 +234,9 @@ GM_ScriptDownloader.prototype.finishInstall = function() {
if (this.updateScript) {
// Inject the script in all windows that have been waiting
var pendingExec;
while (pendingExec = this.script.pendingExec.shift()) {
var pendingExecAry = this.script.pendingExec;
this.script.pendingExec = [];
while (pendingExec = pendingExecAry.shift()) {
if (pendingExec.safeWin.closed) continue;
var url = pendingExec.safeWin.location.href;
if (GM_scriptMatchesUrlAndRuns(this.script, url)) {
Expand Down

0 comments on commit 9c5ff18

Please sign in to comment.