mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 07:58:04 +03:00
85c37fd652
The resourcePath is now set using a url param. Because resourcePath is needed by require.js, it needs to be on `window` rather than `atom`.
34 lines
763 B
HTML
34 lines
763 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
|
|
<script>
|
|
window.location.params = {}
|
|
var params = window.location.search.substring(1).split('&')
|
|
params.forEach(function(param) {
|
|
var pair = param.split("=")
|
|
window.location.params[pair[0]] = pair[1];
|
|
});
|
|
|
|
window.resourcePath = window.location.params.resourcePath
|
|
var bootstrapScript = window.location.params.bootstrapScript;
|
|
|
|
window.onload = function() {
|
|
try {
|
|
if (bootstrapScript) require(bootstrapScript);
|
|
}
|
|
catch (error) {
|
|
if (atom && atom.showDevTools) { atom.showDevTools(); }
|
|
console.error(error.stack || error);
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<script src='../src/stdlib/require.js'></script>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|
|
|