How to disable DevTools in Atom shell
I was trying to figure out how to disable devtools in Atom Shell . I've tried using a window event listener to no avail. It looks like devtools-open window eventener> is not working. Devtools can still be opened with a Command+Option+I
shortcut.
mainWindow.on('devtools-opened', function(){
mainWindow.closeDevTools();
});
I ended up going with Mousetrap and had to use e.preventDefault()
in Cmd+Shift+I
the listener shortcut. I would prefer not to include the Mousetrap library if not needed, but I can't find anything yet.
Does anyone know a better way?
+3
source to share