Skip to content

Commit

Permalink
Use "GM_util.alert()" from module scope.
Browse files Browse the repository at this point in the history
Fixes #1490.
  • Loading branch information
Anthony Lieuallen committed Jan 20, 2012
1 parent 5a0cbdf commit 9520409
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/script.js
Expand Up @@ -443,8 +443,9 @@ Script.prototype.updateFromNewScript = function(newScript, safeWin, chromeWin) {
this._name = newScript._name; this._name = newScript._name;
this._namespace = newScript._namespace; this._namespace = newScript._namespace;
} else { } else {
// TODO: Unlocalized string.
// Notify the user of the conflict // Notify the user of the conflict
alert('Error: Another script with @name: "' + newScript._name + GM_util.alert('Error: Another script with @name: "' + newScript._name +
'" and @namespace: "' + newScript._namespace + '" and @namespace: "' + newScript._namespace +
'" is already installed.\nThese values must be unique.'); '" is already installed.\nThese values must be unique.');
} }
Expand Down

0 comments on commit 9520409

Please sign in to comment.