cleaner modelId URL param
Browse files
src/lib/components/InferencePlayground/InferencePlaygroundModelSelector.svelte
CHANGED
@@ -35,9 +35,7 @@
|
|
35 |
url.searchParams.set("modelId", model.id);
|
36 |
|
37 |
const parentOrigin = "https://huggingface.co";
|
38 |
-
|
39 |
-
searchParamsWithoutTheme.delete("__theme");
|
40 |
-
window.parent.postMessage({ queryString: searchParamsWithoutTheme.toString() }, parentOrigin);
|
41 |
|
42 |
goto(url.toString(), { replaceState: true });
|
43 |
}
|
|
|
35 |
url.searchParams.set("modelId", model.id);
|
36 |
|
37 |
const parentOrigin = "https://huggingface.co";
|
38 |
+
window.parent.postMessage({ queryString: `modelId=${model.id}` }, parentOrigin);
|
|
|
|
|
39 |
|
40 |
goto(url.toString(), { replaceState: true });
|
41 |
}
|