From 2bc02c870483dce12c507ea86a0885deccde7b80 Mon Sep 17 00:00:00 2001 From: Andrew Simachev Date: Sat, 22 Jan 2022 15:25:13 +0300 Subject: [PATCH] fixes --- dist/index.web.html | 7 +++++-- dist/polyfill.js | 3 +-- src/ts/app.tsx | 4 +++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/dist/index.web.html b/dist/index.web.html index e31baf9289..fd16b27c9e 100644 --- a/dist/index.web.html +++ b/dist/index.web.html @@ -4,13 +4,16 @@ Anytype - - + +
diff --git a/dist/polyfill.js b/dist/polyfill.js index 62ab259a64..67691f2ff7 100644 --- a/dist/polyfill.js +++ b/dist/polyfill.js @@ -31,8 +31,7 @@ window.require = window.require || function (mod) { ret.getGlobal = function (v) { switch (v) { case 'serverAddr': - return 'http://127.0.0.1:61266'; - break; + return window.serverAddr; }; }; break; diff --git a/src/ts/app.tsx b/src/ts/app.tsx index 6f69756bda..5415e5d617 100644 --- a/src/ts/app.tsx +++ b/src/ts/app.tsx @@ -156,7 +156,8 @@ const { app, dialog, process } = window.require('@electron/remote'); const version = app.getVersion(); const userPath = app.getPath('userData'); const fs = window.require('fs'); -const memoryHistory = require('history').createMemoryHistory; +const hs = require('history'); +const memoryHistory = hs.createMemoryHistory; const history = memoryHistory(); const Constant = require('json/constant.json'); @@ -214,6 +215,7 @@ declare global { Graph: any; $: any; + isWebVersion: boolean; Config: any; Renderer: any; }