Open sanchezcarlosjr opened 1 year ago
noticed this too—any luck on fixing this?
Any progress? errors for me too.
I encountered the same issue and has been fixed. Replace the code below in worker.js
if (url.pathname.startsWith("/app") && url.pathname.endsWith("js")) {
response = await fetch(url.toString());
let body = await response.text();
response = new Response(
body
.replace(/www.notion.so/g, MY_DOMAIN)
.replace(/notion.so/g, MY_DOMAIN),
response
);
response.headers.set("Content-Type", "application/x-javascript");
return response;
=>
if (url.pathname.endsWith('js')) {
response = await fetch(url.toString());
let body = await response.text();
if (url.pathname.startsWith('/app')) {
body = body.replace(/www.notion.so/g, MY_DOMAIN).replace(/notion.so/g, MY_DOMAIN);
}
response = new Response(body, response);
response.headers.set('Content-Type', 'application/x-javascript');
return response;
Hope this helps~
It works. Thank you!
Web Issue
Issue:
Issue:![image](https://user-images.githubusercontent.com/24639141/206937167-b5235c66-b39e-44e2-9a9c-42d3ce7e3e37.png)
The file loads: https://carlos-eduardo-sanchez-torres.sanchezcarlosjr.com/mermaid-c159349a3a44e74a0ca6.js
We use the Fruition latest version.