mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-03 17:13:05 +00:00
Refine node vs. browser behaviour
Now we’re using TiddlyWiki as the core of TiddlyDesktop we need more granular control of the platform specific code.
This commit is contained in:
@@ -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,
|
||||
path = !$tw.browser ? require("path") : null;
|
||||
var fs = $tw.node ? require("fs") : null,
|
||||
path = $tw.node ? require("path") : null;
|
||||
|
||||
function FileSystemAdaptor(options) {
|
||||
var self = this;
|
||||
|
||||
Reference in New Issue
Block a user