From 21c0ab2e4c3dcda4052646be522b699eb3f6693a Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sun, 16 Sep 2012 19:59:52 +0100 Subject: [PATCH] Improve TiddlyWiki classic detection We were missing older versions of TiddlyWiki --- tiddlyfox/extension/content/overlay.js | 3 ++- tiddlyfox/extension/install.rdf | 2 +- tiddlyfox/extension/tiddlyfox.xpi | Bin 13452 -> 13466 bytes 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tiddlyfox/extension/content/overlay.js b/tiddlyfox/extension/content/overlay.js index d2e54d3fc..44e9fcbb7 100644 --- a/tiddlyfox/extension/content/overlay.js +++ b/tiddlyfox/extension/content/overlay.js @@ -105,7 +105,8 @@ var TiddlyFox = { isTiddlyWikiClassic: function(doc,win) { // Test whether the document is a TiddlyWiki (we don't have access to JS objects in it) return (doc.location.protocol === "file:") && - (doc.scripts[0].id === "versionArea"); + doc.getElementById("storeArea") && + (/TiddlyWiki/.test(doc.scripts[0].text)); }, isTiddlyWiki5: function(doc,win) { diff --git a/tiddlyfox/extension/install.rdf b/tiddlyfox/extension/install.rdf index 1cc81be4b..da7588e36 100644 --- a/tiddlyfox/extension/install.rdf +++ b/tiddlyfox/extension/install.rdf @@ -6,7 +6,7 @@ tiddlyfox@tiddlywiki.org TiddlyFox extension for Firefox - 1.0alpha3 + 1.0alpha4 A Firefox extension to enable TiddlyWiki to save changes directly to the file system. Jeremy Ruston https://five.tiddlywiki.com/tiddlyfox diff --git a/tiddlyfox/extension/tiddlyfox.xpi b/tiddlyfox/extension/tiddlyfox.xpi index 82f127b28298cc4289684b7acea46f46bc1f0f27..d2f9e9eb913eedb8288e6bec9f70d313e0f9dadf 100644 GIT binary patch delta 2975 zcmZXW2|QHm8^_NW1{oq-w?SMPW-w#lOQaYi`&E*C8OAyz>ov%l<}$`5S}cw2T5d>g z3!<`=eP?W0ZX{&y+WHTr?SDR>b3W(!zR&Z#?{hxyd7s}6YzCIy*Z|CU2-v%vGiAu^ zg3Mtemc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