Files
atom/static/index.html
2013-03-05 16:10:02 -08:00

38 lines
1008 B
HTML

<!DOCTYPE html>
<html style="background: #333">
<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[decodeURIComponent(pair[0])] = decodeURIComponent(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);
}
}
document.addEventListener('DOMContentLoaded', function() {
if(window.location.params.devMode == "true")
document.body.setAttribute('class', 'is-dev-mode')
})
</script>
<script src='../src/stdlib/require.js'></script>
</head>
<body>
</body>
</html>