mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 14:54:51 +00:00
Check for being on a file URI before trying to use Firefox's XUL file saving
This commit is contained in:
parent
1971f86d5e
commit
632c846ae0
@ -53,7 +53,7 @@ FirefoxSaver.prototype.info = {
|
|||||||
Static method that returns true if this saver is capable of working
|
Static method that returns true if this saver is capable of working
|
||||||
*/
|
*/
|
||||||
exports.canSave = function() {
|
exports.canSave = function() {
|
||||||
return !!window.Components;
|
return window.location.protocol === "file:" && !!window.Components;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user