mirror of
https://github.com/electron/electron.git
synced 2026-01-25 15:28:11 -05:00
Fix win/linux compile
This commit is contained in:
committed by
Cheng Zhao
parent
9382d48708
commit
f0ca9dff81
@@ -95,9 +95,9 @@ void OpenExternal(const GURL& url, bool activate,
|
||||
bool opened = OpenExternal(url, activate);
|
||||
if (!opened) {
|
||||
callback.Run(v8::Exception::Error(
|
||||
v8::String::NewFromUtf8(isolate, @"Failed to open")));
|
||||
v8::String::NewFromUtf8(isolate, "Failed to open")));
|
||||
} else {
|
||||
callback.Run(v8::Null(isolate);)
|
||||
callback.Run(v8::Null(isolate));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -322,9 +322,9 @@ void OpenExternal(const base::string16& url, bool activate,
|
||||
bool opened = OpenExternal(url, activate);
|
||||
if (!opened) {
|
||||
callback.Run(v8::Exception::Error(
|
||||
v8::String::NewFromUtf8(isolate, @"Failed to open")));
|
||||
v8::String::NewFromUtf8(isolate, "Failed to open")));
|
||||
} else {
|
||||
callback.Run(v8::Null(isolate);)
|
||||
callback.Run(v8::Null(isolate));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user