mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-08 05:46:05 +00:00
Check for being on a file URI before trying to use Firefox's XUL file saving
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user