From 895447c40c81ffbf075ae6d7988ab7143977fe5e Mon Sep 17 00:00:00 2001 From: Sebastian Silva Date: Wed, 2 May 2018 09:57:47 -0500 Subject: [PATCH] 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. --- core/modules/savers/beaker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/savers/beaker.js b/core/modules/savers/beaker.js index be7674338..dc24ef67f 100644 --- a/core/modules/savers/beaker.js +++ b/core/modules/savers/beaker.js @@ -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:"; }; /*