1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-19 08:14:50 +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) { isTiddlyWikiClassic: function(doc,win) {
// Test whether the document is a TiddlyWiki (we don't have access to JS objects in it) // Test whether the document is a TiddlyWiki (we don't have access to JS objects in it)
return (doc.location.protocol === "file:") && return (doc.location.protocol === "file:") &&
(doc.scripts[0].id === "versionArea"); doc.getElementById("storeArea") &&
(/TiddlyWiki/.test(doc.scripts[0].text));
}, },
isTiddlyWiki5: function(doc,win) { isTiddlyWiki5: function(doc,win) {

View File

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

Binary file not shown.