Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
janekptacijarabaci committed Apr 9, 2016
1 parent 3d85afe commit ab4b75a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/sandbox.js
Expand Up @@ -133,8 +133,8 @@ function injectGMInfo(aScript, sandbox, aContentWin) {
var rawInfo = aScript.info();
var scriptURL = aScript.fileURL;

rawInfo.script.isIncognito = GM_util.isPrivate(aContentWin);
rawInfo.script.isPrivate = rawInfo.script.isIncognito;
rawInfo.isIncognito = GM_util.isPrivate(aContentWin);
rawInfo.isPrivate = rawInfo.isIncognito;

// TODO: also delay top level clone via lazy getter? XPCOMUtils.defineLazyGetter
sandbox.GM_info = Cu.cloneInto(rawInfo, sandbox);
Expand Down
4 changes: 2 additions & 2 deletions modules/script.js
Expand Up @@ -574,6 +574,8 @@ Script.prototype.info = function() {
return {
'uuid': this.uuid,
'version': gGreasemonkeyVersion,
'isIncognito': this.isPrivate,
'isPrivate': this.isPrivate,
'scriptMetaStr': extractMeta(this.textContent),
'scriptSource': this.textContent,
'scriptWillUpdate': this.isRemoteUpdateAllowed(),
Expand All @@ -582,8 +584,6 @@ Script.prototype.info = function() {
'excludes': this.excludes,
// 'icon': ??? source URL?,
'includes': this.includes,
'isIncognito': this.isPrivate,
'isPrivate': this.isPrivate,
'localizedDescription': this.localized.description,
'localizedName': this.localized.name,
'matches': matches,
Expand Down

0 comments on commit ab4b75a

Please sign in to comment.