kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Check for being on a file URI before trying to use Firefox's XUL file saving
rodzic
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;
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Ładowanie…
Reference in New Issue