TagSpaces is an offline, open source, document manager with tagging support
removing isNode usage
Ilian Sapundshieveed648ba7311
diff --git a/data/js/calendar.ui.js b/data/js/calendar.ui.jsindex bfa501edc..0737fe9a5 100644--- a/data/js/calendar.ui.js+++ b/data/js/calendar.ui.js@@ -2,7 +2,7 @@* Use of this source code is governed by a AGPL3 license that* can be found in the LICENSE file. */-/* global define, Handlebars, isNode, isFirefox */+/* global define, Handlebars, isFirefox */define(function(require, exports, module) {'use strict';console.log('Loading calendar.ui.js ...');diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex d32dfcfdd..d8e862b51 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -2,7 +2,7 @@* Use of this source code is governed by a AGPL3 license that* can be found in the LICENSE file. */-/* global define, Handlebars, isNode, isFirefox, Mousetrap */+/* global define, Handlebars, isFirefox, Mousetrap */define(function(require, exports) {'use strict';@@ -37,7 +37,7 @@ define(function(require, exports) {});// Managing droping of files in the perspectives- if (isNode || isElectron) {+ if (isElectron) {$('#viewContainers').on('dragenter', function(event) {event.preventDefault();showFileDropArea();@@ -1063,7 +1063,7 @@ define(function(require, exports) {} else if (isFirefox) {$('#openNatively').hide();$('#fileMenuOpenNatively').parent().hide();- } else if (isNode || isElectron) {+ } else if (isElectron) {$('#openFileInNewWindow').hide();}// Disable send to feature on all platforms except android cordovadiff --git a/data/js/perspective.manager.js b/data/js/perspective.manager.jsindex 992d7c9ad..053b153c4 100644--- a/data/js/perspective.manager.js+++ b/data/js/perspective.manager.js@@ -70,7 +70,7 @@ define(function(require, exports, module) {TSCORE.fireDocumentEvent(TSCORE.createDocumentEvent("initApp"));$("#viewContainers").removeClass("appBackgroundTile");$('#loading').hide();- if (isNode || isElectron) {+ if (isElectron) {TSCORE.IO.showMainWindow();}return true;diff --git a/data/js/search.ui.js b/data/js/search.ui.jsindex 2d174b512..7972638ee 100644--- a/data/js/search.ui.js+++ b/data/js/search.ui.js@@ -2,7 +2,7 @@* Use of this source code is governed by a AGPL3 license that* can be found in the LICENSE file. */-/* global define, Handlebars, isNode */+/* global define, Handlebars*/define(function(require, exports, module) {'use strict';console.log('Loading search.ui.js ...');