mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-16 13:21:04 +01:00
run shared process in a browser window
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user