diff --git a/src/window-event-handler.coffee b/src/window-event-handler.coffee index d5b034e60..bdf50bd4b 100644 --- a/src/window-event-handler.coffee +++ b/src/window-event-handler.coffee @@ -23,9 +23,9 @@ class WindowEventHandler @subscribe ipc, 'context-command', (command, args...) -> $(atom.contextMenu.activeElement).trigger(command, args...) - @subscribe $(window), 'focus', -> $("body").removeClass('is-blurred') + @subscribe $(window), 'focus', -> document.body.classList.remove('is-blurred') - @subscribe $(window), 'blur', -> $("body").addClass('is-blurred') + @subscribe $(window), 'blur', -> document.body.classList.add('is-blurred') @subscribe $(window), 'window:open-path', (event, {pathToOpen, initialLine, initialColumn}) -> unless fs.isDirectorySync(pathToOpen)