1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-08 09:48:05 +00:00

Add write condition for DAT protocol (#3244)

In order to write to a DAT with Beaker Browser, it needs to have access to the file via `dat:` protocol.
This commit is contained in:
Sebastian Silva
2018-05-02 09:57:47 -05:00
committed by Jeremy Ruston
parent 5626148202
commit 895447c40c

View File

@@ -51,7 +51,7 @@ BeakerSaver.prototype.info = {
Static method that returns true if this saver is capable of working
*/
exports.canSave = function(wiki) {
return !!window.DatArchive;
return !!window.DatArchive && location.protocol==="dat:";
};
/*