1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-10 18:10:54 +09:00
This commit is contained in:
Andrew Simachev 2022-01-22 15:25:13 +03:00
parent 684933d628
commit 2bc02c8704
3 changed files with 9 additions and 5 deletions

7
dist/index.web.html vendored
View file

@ -4,13 +4,16 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Anytype</title>
<script src="./polyfill.js" type="text/javascript"></script>
<script type="text/javascript">
window.isWebVersion = true;
window.serverAddr = 'http://127.0.0.1:50397'
let onload = function () {
RendererEvents.dataPath(null, '/');
};
</script>
<script src="./polyfill.js" type="text/javascript"></script>
</head>
<body onload="onload();">
<div id="root"></div>

3
dist/polyfill.js vendored
View file

@ -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;

View file

@ -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;
}