@aiyiran/myclaw 1.0.245 → 1.0.246
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.
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
function fetchArtifactsFromServerAPI(wsPrefix) {
|
|
294
|
-
var url = window.location.origin + '/cmd/api/
|
|
294
|
+
var url = window.location.origin + '/cmd/api/preview?path=' + encodeURIComponent(wsPrefix + '/.myclaw/__MY_ARTIFACTS__.json');
|
|
295
295
|
return fetch(url).then(function (res) {
|
|
296
296
|
if (!res.ok) throw new Error('HTTP ' + res.status);
|
|
297
297
|
return res.json();
|