From 7f056c456051dadb2502b30e72673149de3f7191 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Thu, 10 Jan 2019 20:29:14 +0100 Subject: [PATCH] USe analytics only in build. --- tools/build.py | 1 + website/index.html | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/tools/build.py b/tools/build.py index 70955b9..cecca1d 100644 --- a/tools/build.py +++ b/tools/build.py @@ -27,6 +27,7 @@ def BuildWebSite (rootFolder, resultFolder, extensions): shutil.copytree (os.path.join (rootFolder, 'jsmodeler'), os.path.join (targetFolder, 'jsmodeler')) indexFilePath = os.path.join (targetFolder, 'index.html') importerAppFilePath = os.path.join (targetFolder, 'include', 'importerapp.js') + ReplaceInFile (indexFilePath, 'var useAnalytics = false;', 'var useAnalytics = true;') ReplaceInFile (indexFilePath, '../jsmodeler/', 'jsmodeler/') extensionIncludes = '' for extension in extensions: diff --git a/website/index.html b/website/index.html index 384369b..4c26d6c 100644 --- a/website/index.html +++ b/website/index.html @@ -26,13 +26,16 @@ Online 3D Viewer