You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught (in promise) TypeError: URL.canParse is not a function
at Main.makeRelativeToCurrentBoard_fn (index.ts:851:25)
at Main.onStartBoard_fn (index.ts:866:17)
at index.ts:556:11
makeRelativeToCurrentBoard_fn @ index.ts:851
onStartBoard_fn @ index.ts:866
(anonymous) @ index.ts:556
Promise.then (async)
Main @ index.ts:537
(anonymous) @ index.html:35
I tried to replicate the above issues by running the visual editor locally and using both Obsidian and Chrome for Testing (chromium 114.0.5735.289). The results were the same for both, as described below:
The above does not work. In addition to the URL.canParse error, the iframe itself does not render at all and it seems like the query string param is not recognised (attempting to print the url to the console displays an empty string and the url shows as http://localhost:5173/preview.html?board=&embed=true).
Issue exposed in Obsidian. I know that specifically is a very edge case but I think there is an underlying issue.
the following works
whereas with the
&embed
paramyields the following error:
breadboard/packages/visual-editor/src/index.ts
Line 851 in a30fb39
It smells funky to me that the non-embed works, but embed does not.
My nose says it might be something to do with when using
&embed
it gets redirected to&embed=
This is found in Obsidian Installer 1.4.13 which uses chromium
114.0.5735.289
and does not havecanParse
(see https://caniuse.com/mdn-api_url_canparse_static)The appropriate Obsidian Chrome version can be installed with
or
The text was updated successfully, but these errors were encountered: