@weaverse/next 0.1.0-alpha.10 → 0.1.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -938,7 +938,10 @@ function bindWeaverseNextStudioRuntime(runtime) {
|
|
|
938
938
|
return false;
|
|
939
939
|
}
|
|
940
940
|
let boundRuntime = runtime;
|
|
941
|
-
|
|
941
|
+
let activeRuntime = studio.weaverse;
|
|
942
|
+
let activeRequestInfo = activeRuntime?.requestInfo;
|
|
943
|
+
let isActiveUrl = !activeRequestInfo || activeRequestInfo.pathname === runtime.requestInfo.pathname && activeRequestInfo.search === runtime.requestInfo.search;
|
|
944
|
+
if (!(boundRuntime.__weaverseNextStudioBound && isActiveUrl)) {
|
|
942
945
|
studio.init?.(runtime);
|
|
943
946
|
boundRuntime.__weaverseNextStudioBound = true;
|
|
944
947
|
return true;
|