mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 18:24:09 +03:00
Remove newWindow from native extension
This commit is contained in:
parent
fa4650343b
commit
073164c584
@ -49,9 +49,6 @@ var $native = {};
|
||||
native function toggleDevTools();
|
||||
$native.toggleDevTools = toggleDevTools;
|
||||
|
||||
native function newWindow();
|
||||
$native.newWindow = newWindow;
|
||||
|
||||
native function saveDialog();
|
||||
$native.saveDialog = saveDialog;
|
||||
|
||||
|
@ -216,11 +216,6 @@ bool Native::Execute(const CefString& name,
|
||||
|
||||
return true;
|
||||
}
|
||||
else if (name == "newWindow") {
|
||||
[(AtomApplication *)NSApp open:nil];
|
||||
|
||||
return true;
|
||||
}
|
||||
else if (name == "saveDialog") {
|
||||
NSSavePanel *panel = [NSSavePanel savePanel];
|
||||
if ([panel runModal] == NSFileHandlingPanelOKButton) {
|
||||
|
Loading…
Reference in New Issue
Block a user