Permalink
Browse files

Use "GM_util.alert()" from module scope.

Fixes #1490.
  • Loading branch information...
1 parent 5a0cbdf commit 9520409c2ee6e1d7ad77648efc43b2865b39c44e @arantius arantius committed Jan 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 modules/script.js
View
3 modules/script.js
@@ -443,8 +443,9 @@ Script.prototype.updateFromNewScript = function(newScript, safeWin, chromeWin) {
this._name = newScript._name;
this._namespace = newScript._namespace;
} else {
+ // TODO: Unlocalized string.
// 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 +
'" is already installed.\nThese values must be unique.');
}

0 comments on commit 9520409

Please sign in to comment.