forked from jupyterlab/jupyterlab-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (56 loc) · 1.74 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<!--
Copyright (c) Jupyter Development Team.
Distributed under the terms of the Modified BSD License.
-->
<html>
<head>
<meta charset="utf-8">
<title>JupyterLab Application</title>
<script id="jupyter-config-data" type="application/json">{
"appVersion": "0.22.1",
"devMode": "False",
"settingsDir": "",
"ignorePlugins": "[]",
"terminalsAvailable": "True",
"assetsDir": "",
"appNamespace": "",
"appName": "JupyterLab",
"baseUrl": "http://localhost:8888/",
"token": "1de5edc51089178c86080eb62f6d1e9271348ab26bcedf5f",
"wsUrl": "",
"publicUrl": "./build/"
}</script>
<script>
require('./build/main.bundle.js');
</script>
<script type="text/javascript" src="http://localhost:8888/static/components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,Safe&delayStartupUntil=configured" charset="utf-8"></script>
</head>
<body>
<script type="text/javascript">
function _remove_token_from_url() {
if (window.location.search.length <= 1) {
return;
}
var search_parameters = window.location.search.slice(1).split('&');
for (var i = 0; i < search_parameters.length; i++) {
if (search_parameters[i].split('=')[0] === 'token') {
// remote token from search parameters
search_parameters.splice(i, 1);
var new_search = '';
if (search_parameters.length) {
new_search = '?' + search_parameters.join('&');
}
var new_url = window.location.origin +
window.location.pathname +
new_search +
window.location.hash;
window.history.replaceState({}, "", new_url);
return;
}
}
}
_remove_token_from_url();
</script>
</body>
</html>