diff --git a/server/src/bindings/Main.cpp b/server/src/bindings/Main.cpp index 8a371cc6..3c4515d1 100644 --- a/server/src/bindings/Main.cpp +++ b/server/src/bindings/Main.cpp @@ -646,6 +646,4 @@ extern V8Module V8Helpers::RegisterFunc(exports, "setVoiceExternal", &SetVoiceExternal); V8_OBJECT_SET_STRING(exports, "rootDir", alt::ICore::Instance().GetRootDirectory()); - V8_OBJECT_SET_INT(exports, "defaultDimension", alt::DEFAULT_DIMENSION); - V8_OBJECT_SET_INT(exports, "globalDimension", alt::GLOBAL_DIMENSION); }); diff --git a/shared/bindings/BindingsMain.cpp b/shared/bindings/BindingsMain.cpp index 168e5f7b..a0bf4ca3 100644 --- a/shared/bindings/BindingsMain.cpp +++ b/shared/bindings/BindingsMain.cpp @@ -518,6 +518,9 @@ extern V8Module V8_OBJECT_SET_STRING(exports, "resourceName", V8ResourceImpl::GetResource(ctx)->GetName()); + V8_OBJECT_SET_INT(exports, "defaultDimension", alt::DEFAULT_DIMENSION); + V8_OBJECT_SET_INT(exports, "globalDimension", alt::GLOBAL_DIMENSION); + #ifdef ALT_CLIENT_API V8_OBJECT_SET_BOOLEAN(exports, "isClient", true); V8_OBJECT_SET_BOOLEAN(exports, "isServer", false);