Commit 77dd9f53 authored by Romain Loth's avatar Romain Loth

small fix sourcemode

parent 7b2aa8e2
...@@ -54,12 +54,13 @@ TW.instance.initSearchListeners(); ...@@ -54,12 +54,13 @@ TW.instance.initSearchListeners();
// show the custom name of the app // show the custom name of the app
writeBrand(TW.conf.branding) writeBrand(TW.conf.branding)
// choosing the input // choosing the input
// ------------------- // -------------------
// type of input
var sourcemode = isUndef(getUrlParam.sourcemode) ? TW.conf.sourcemode : getUrlParam.sourcemode
// if page is being run locally ==> only possible source shall be via file input // if page is being run locally ==> only possible source shall be via file input
if (window.location.protocol == 'file:' if (window.location.protocol == 'file:' || sourcemode == 'localfile') {
|| (!isUndef(getUrlParam.sourcemode) && getUrlParam.sourcemode == 'localfile')) {
let inputDiv = document.getElementById('localInput') let inputDiv = document.getElementById('localInput')
inputDiv.style.display = 'block' inputDiv.style.display = 'block'
...@@ -95,9 +96,6 @@ function syncRemoteGraphData () { ...@@ -95,9 +96,6 @@ function syncRemoteGraphData () {
var mapLabel; // user displayed label for this input dataset var mapLabel; // user displayed label for this input dataset
// type of input
let sourcemode = isUndef(getUrlParam.sourcemode)?TW.sourcemode:getUrlParam.sourcemode
// case (1) read from remote DB via API bridge fetching // case (1) read from remote DB via API bridge fetching
// ex: /services/api/graph?q=filters... // ex: /services/api/graph?q=filters...
if (sourcemode == "api") { if (sourcemode == "api") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment