mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
add visual indicator for dev mode
This commit is contained in:
parent
8e11ca58e5
commit
0dfd3597fb
@ -10,6 +10,14 @@ html, body {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.is-dev-mode #root-view:before {
|
||||
content: "";
|
||||
height: 3px;
|
||||
display: block;
|
||||
background-image: -webkit-linear-gradient(#ffc833, #ebac00);
|
||||
border-bottom: 1px solid #000;
|
||||
}
|
||||
|
||||
#root-view #horizontal {
|
||||
display: -webkit-flex;
|
||||
height: 100%;
|
||||
|
@ -23,6 +23,11 @@
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user