提交 60e1c581 编写于 作者: M Martin Aeschlimann

handle multiple page query arguments

上级 b19f7198
...@@ -16,8 +16,13 @@ ...@@ -16,8 +16,13 @@
<script> <script>
(function() { (function() {
try { try {
let config = JSON.parse(decodeURIComponent(window.location.search.substring(8))); window.location.search.substring(1).split('&').forEach(p => {
var kv = p.split('=');
if (kv[0] === 'config' && kv[1]) {
let config = JSON.parse(decodeURIComponent(kv[1]));
window.document.body.className = 'monaco-shell ' + config.baseTheme; window.document.body.className = 'monaco-shell ' + config.baseTheme;
}
});
} catch (error) { } catch (error) {
console.error(error); console.error(error);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册