run shared process in a browser window

This commit is contained in:
Joao Moreno
2017-03-01 17:20:45 +01:00
parent b518405ba9
commit 330901dd24
6 changed files with 193 additions and 119 deletions
@@ -0,0 +1,32 @@
<!-- Copyright (C) Microsoft Corporation. All rights reserved. -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body class="monaco-shell vs-dark" aria-label="">
<script>
(function () {
try {
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;
}
});
} catch (error) {
console.error(error);
}
})();
</script>
Shared Process
</body>
<!-- Startup via index.js -->
<script src="sharedProcess.js"></script>
</html>