Merge branch 'al-android-aar' of https://github.com/realm/realm-js into al-android-aar

This commit is contained in:
Nabil Hachicha 2016-01-12 19:41:24 +00:00
commit 27bae32361
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,6 @@
#pragma once
#include <JavaScriptCore/JSBase.h>
#include <string>
#ifdef __cplusplus
extern "C" {

View File

@ -108,7 +108,9 @@ std::map<std::string, JSValueRef> &RJSPrototypes(Realm *realm) {
// static std::string s_defaultPath = realm::default_realm_file_directory() + "/default.realm";
static std::string s_defaultPath = "";
std::string RJSDefaultPath() {
if (s_defaultPath.size() == 0) {
s_defaultPath = realm::default_realm_file_directory() + "/default.realm";
}
return s_defaultPath;
}
void RJSSetDefaultPath(std::string path) {