Skip to content

Commit

Permalink
1. ‧Fix compatibility with Firefox 45.
Browse files Browse the repository at this point in the history
  • Loading branch information
ettoolong committed Mar 16, 2016
1 parent 5bc33cd commit 1359d6a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions chrome/content/tacache.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ var textareaCache = {
this.util.moveItemToTop(index);
this.util.updateItemText(text, submitted);
}
else
this.util.addNewItem(node, text, submitted, this.isWindowPrivate);
else {
this.util.addNewItem({title: node.tacacheDoc.title, id: node.tacacheID, nodeName: node.nodeName}, text, submitted, this.isWindowPrivate);
//this.util.addNewItem(node, text, submitted, this.isWindowPrivate);
}
}
},

Expand Down
2 changes: 1 addition & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>14.0</em:minVersion>
<em:maxVersion>45.*</em:maxVersion>
<em:maxVersion>47.*</em:maxVersion>
</Description>
</em:targetApplication>

Expand Down
5 changes: 3 additions & 2 deletions modules/cache.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,9 @@ this.TextareaCacheUtil = {
},

addNewItem : function ( node, text, submitted, privateWindow ) {
let title = node.tacacheDoc.title;
let id = node.tacacheID;
//let title = node.tacacheDoc.title;
//let id = node.tacacheID;
let {title, id} = node;

// get time
let time = Date.now();
Expand Down

0 comments on commit 1359d6a

Please sign in to comment.