mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-05-14 21:34:07 +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) {
|
isTiddlyWiki: 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.scripts[0].id === "versionArea");
|
return (doc.location.protocol === "file:") &&
|
||||||
|
(doc.scripts[0].id === "versionArea");
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user