mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Close the dev-tools when reloading reduces memory leaks (by a lot)
This commit is contained in:
@@ -88,6 +88,7 @@
|
||||
isAfterJavaScript:(bool)isAfterJavaScript {
|
||||
|
||||
if (isAfterJavaScript && type == KEYEVENT_RAWKEYDOWN && modifiers == KEY_META && code == 'R') {
|
||||
_clientHandler->GetBrowser()->CloseDevTools();
|
||||
_clientHandler->GetBrowser()->ReloadIgnoreCache();
|
||||
return YES;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user