From c6e8195e01bf30e68b08b849ef20b3dbb30dc094 Mon Sep 17 00:00:00 2001 From: pypy Date: Sun, 1 Nov 2020 19:47:06 +0900 Subject: [PATCH] bugfix --- VRForm.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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();