mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add .dev-mode class to root view
This commit is contained in:
@@ -34,6 +34,7 @@ class RootView extends View
|
||||
title: null
|
||||
|
||||
initialize: ->
|
||||
@addClass('dev-mode') if atom.devMode
|
||||
@command 'toggle-dev-tools', => atom.toggleDevTools()
|
||||
@on 'focus', (e) => @handleFocus(e)
|
||||
@subscribe $(window), 'focus', (e) =>
|
||||
|
||||
@@ -10,7 +10,7 @@ html, body {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.is-dev-mode #root-view:before {
|
||||
#root-view.dev-mode:before {
|
||||
content: "";
|
||||
height: 3px;
|
||||
display: block;
|
||||
|
||||
@@ -23,12 +23,6 @@
|
||||
console.error(error.stack || error);
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
if (window.location.params.devMode) {
|
||||
document.body.setAttribute('class', 'is-dev-mode')
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<script src='../src/stdlib/require.js'></script>
|
||||
|
||||
Reference in New Issue
Block a user