From 1359d6aab4d32a12620d777b0fbd33acd7a04a5a Mon Sep 17 00:00:00 2001 From: ettoolong Date: Wed, 16 Mar 2016 11:03:06 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E2=80=A7Fix=20compatibility=20with=20Fire?= =?UTF-8?q?fox=2045.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chrome/content/tacache.js | 6 ++++-- install.rdf | 2 +- modules/cache.jsm | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/chrome/content/tacache.js b/chrome/content/tacache.js index 182b7ee..43642e1 100755 --- a/chrome/content/tacache.js +++ b/chrome/content/tacache.js @@ -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); + } } }, diff --git a/install.rdf b/install.rdf index ee1ff52..ff06746 100755 --- a/install.rdf +++ b/install.rdf @@ -13,7 +13,7 @@ {ec8030f7-c20a-464f-9b0e-13a3a9e97384} 14.0 - 45.* + 47.* diff --git a/modules/cache.jsm b/modules/cache.jsm index 8ff9c9e..aff342b 100755 --- a/modules/cache.jsm +++ b/modules/cache.jsm @@ -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();