1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-01 16:30:46 +00:00

Improve TiddlyWiki classic detection

We were missing older versions of TiddlyWiki
This commit is contained in:
Jeremy Ruston 2012-09-16 19:59:52 +01:00
parent 15a740f951
commit 21c0ab2e4c
3 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -6,7 +6,7 @@
<em:id>tiddlyfox@tiddlywiki.org</em:id>
<em:name>TiddlyFox extension for Firefox</em:name>
<em:version>1.0alpha3</em:version>
<em:version>1.0alpha4</em:version>
<em:description>A Firefox extension to enable TiddlyWiki to save changes directly to the file system.</em:description>
<em:creator>Jeremy Ruston</em:creator>
<em:homepageURL>https://five.tiddlywiki.com/tiddlyfox</em:homepageURL>

Binary file not shown.