1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-01 01:33:16 +00:00

Reinstated check for the page being loaded from a file URI

This commit is contained in:
Jeremy Ruston 2012-08-28 08:25:02 +01:00
parent f8264a4906
commit 75791c6c90
2 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ var TiddlyFox = {
isTiddlyWiki: function(doc,win) {
// Test whether the document is a TiddlyWiki (we don't have access to JS objects in it)
return (doc.scripts[0].id === "versionArea");
return (doc.location.protocol === "file:") &&
(doc.scripts[0].id === "versionArea");
}
};

Binary file not shown.