print-window-tiddler
Mario Pietsch 2014-04-03 19:03:51 +02:00
commit 9bd626315e
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -13,8 +13,8 @@ A sync adaptor module for synchronising with the local filesystem via node.js AP
"use strict"; "use strict";
// Get a reference to the file system // Get a reference to the file system
var fs = !$tw.browser ? require("fs") : null; var fs = !$tw.browser ? require("fs") : null,
path = !$tw.browser ? require("path") : null;
function FileSystemAdaptor(syncer) { function FileSystemAdaptor(syncer) {
var self = this; var self = this;

Wyświetl plik

@ -311,7 +311,7 @@ TiddlyWebAdaptor.prototype.parseEtag = function(etag) {
} }
}; };
if($tw.browser) { if($tw.browser && document.location.protocol.substr(0,4) === "http" ) {
exports.adaptorClass = TiddlyWebAdaptor; exports.adaptorClass = TiddlyWebAdaptor;
} }