mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-12 10:20:26 +00:00
Merge branch 'master' of https://github.com/Jermolene/TiddlyWiki5
This commit is contained in:
commit
9bd626315e
@ -13,8 +13,8 @@ A sync adaptor module for synchronising with the local filesystem via node.js AP
|
||||
"use strict";
|
||||
|
||||
// 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) {
|
||||
var self = this;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user