mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-12 18:30:27 +00:00
Reinstated check for the page being loaded from a file URI
This commit is contained in:
parent
f8264a4906
commit
75791c6c90
@ -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.
Loading…
Reference in New Issue
Block a user