Skip to content

Commit

Permalink
chore: update offline mode assets
Browse files Browse the repository at this point in the history
  • Loading branch information
twlite committed Aug 25, 2021
1 parent 75216d6 commit 269552f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion environments/core/server/sources/s4d/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
::-webkit-scrollbar-corner {
background-color: #161719;
color: #161719;
}</style><link href="/css/app.aec413a1.css" rel="preload" as="style"><link href="/css/chunk-vendors.8ae1e9b2.css" rel="preload" as="style"><link href="/js/app.f03ff491.js" rel="preload" as="script"><link href="/js/chunk-vendors.26c3cd65.js" rel="preload" as="script"><link href="/css/chunk-vendors.8ae1e9b2.css" rel="stylesheet"><link href="/css/app.aec413a1.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but Scratch For Discord doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script async defer data-website-id="bcf39955-5495-4aba-bb44-4c392778a96c" src="https://analytics.androz2091.fr/umami.js"></script><script src="/js/chunk-vendors.26c3cd65.js"></script><script src="/js/app.f03ff491.js"></script></body></html>
}</style><link href="/css/app.aec413a1.css" rel="preload" as="style"><link href="/css/chunk-vendors.8ae1e9b2.css" rel="preload" as="style"><link href="/js/app.f87207ed.js" rel="preload" as="script"><link href="/js/chunk-vendors.26c3cd65.js" rel="preload" as="script"><link href="/css/chunk-vendors.8ae1e9b2.css" rel="stylesheet"><link href="/css/app.aec413a1.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but Scratch For Discord doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script async defer data-website-id="bcf39955-5495-4aba-bb44-4c392778a96c" src="https://analytics.androz2091.fr/umami.js"></script><script src="/js/chunk-vendors.26c3cd65.js"></script><script src="/js/app.f87207ed.js"></script></body></html>
2 changes: 0 additions & 2 deletions environments/core/server/sources/s4d/js/app.f03ff491.js

This file was deleted.

This file was deleted.

2 changes: 2 additions & 0 deletions environments/core/server/sources/s4d/js/app.f87207ed.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion environments/scripts/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ const ScratchNative = {
onceMessage: (channel, ...data) => {
ipcRenderer.once(channel, ...data);
},
unregisterEvents: (events) => {
if (!Array.isArray(events)) return;
for (const event of events) {
ipcRenderer.removeAllListeners(event);
}
},
DISCORD_INVITE: "https://androz2091.fr/discord",
DISCORD_COMMUNITY: "https://discord.gg/QemqGz63ju",
openURL: (url) => void shell.openExternal(url),
Expand All @@ -56,7 +62,7 @@ const ScratchNative = {

contextBridge.exposeInMainWorld("ScratchNative", ScratchNative);

document.addEventListener("keyup", (ev) => {
document.addEventListener("keydown", (ev) => {
if (ev.ctrlKey && ev.key.toLowerCase() === "r") {
ev.preventDefault();
window.location.reload();
Expand Down

0 comments on commit 269552f

Please sign in to comment.