Browse Source

Fix win/linux compile

Gabriel Handford 8 years ago
parent
commit
f0ca9dff81
2 changed files with 4 additions and 4 deletions
  1. 2 2
      atom/common/platform_util_linux.cc
  2. 2 2
      atom/common/platform_util_win.cc

+ 2 - 2
atom/common/platform_util_linux.cc

@@ -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));
   }
 }
 

+ 2 - 2
atom/common/platform_util_win.cc

@@ -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));
   }
 }