1
0
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:
Jeremy Ruston 2012-07-12 13:11:58 +01:00
parent 1971f86d5e
commit 632c846ae0

View File

@ -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;
}; };
/* /*