Add .dev-mode class to root view

This commit is contained in:
probablycorey
2013-03-05 14:16:30 -08:00
parent d6ae5a1778
commit 9331b3beed
3 changed files with 2 additions and 7 deletions

View File

@@ -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) =>

View File

@@ -10,7 +10,7 @@ html, body {
position: relative;
}
.is-dev-mode #root-view:before {
#root-view.dev-mode:before {
content: "";
height: 3px;
display: block;

View File

@@ -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>