diff --git a/VRForm.cs b/VRForm.cs index 2c71f84c..20807554 100644 --- a/VRForm.cs +++ b/VRForm.cs @@ -46,12 +46,12 @@ namespace VRCX { CamelCaseJavascriptNames = false }; - Browser1.JavascriptObjectRepository.Register("VRCX", new VRCX(), true, options); - Browser1.JavascriptObjectRepository.Register("VRCXStorage", new VRCXStorage(), false, options); - Browser1.JavascriptObjectRepository.Register("SQLite", new SQLite(), true, options); - Browser2.JavascriptObjectRepository.Register("VRCX", new VRCX(), true, options); - Browser2.JavascriptObjectRepository.Register("VRCXStorage", new VRCXStorage(), false, options); - Browser2.JavascriptObjectRepository.Register("SQLite", new SQLite(), true, options); + Browser1.JavascriptObjectRepository.Register("VRCX", VRCX.Instance, true, options); + Browser1.JavascriptObjectRepository.Register("VRCXStorage", VRCXStorage.Instance, false, options); + Browser1.JavascriptObjectRepository.Register("SQLite", SQLite.Instance, true, options); + Browser2.JavascriptObjectRepository.Register("VRCX", VRCX.Instance, true, options); + Browser2.JavascriptObjectRepository.Register("VRCXStorage", VRCXStorage.Instance, false, options); + Browser2.JavascriptObjectRepository.Register("SQLite", SQLite.Instance, true, options); Browser1.IsBrowserInitializedChanged += (A, B) => { // Browser1.ShowDevTools();