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
On "Providing you own html" you can instead of asking to put the script tag with the code, you could serve yourself from the code the script code:
const sse = new EventSource("/refresh/v1/sse");
sse.addEventListener("message", (e) => {
const msg = JSON.parse(e.data);
if ("KeepAlive" in msg) console.log("KeepAlive");
if ("PageRefresh" in msg) location.reload();
});
in a special path..
Like: /script/live-server.js
And then ask the users to add: <script src="/scripts/live-server.js" />
The text was updated successfully, but these errors were encountered:
On "Providing you own html" you can instead of asking to put the script tag with the code, you could serve yourself from the code the script code:
in a special path..
Like:
/script/live-server.js
And then ask the users to add:
<script src="/scripts/live-server.js" />
The text was updated successfully, but these errors were encountered: