mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-23 06:20:01 +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
|
||||
*/
|
||||
exports.canSave = function() {
|
||||
return !!window.Components;
|
||||
return window.location.protocol === "file:" && !!window.Components;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user