GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — :wrench: improved error logs · nullstack/nullstack@217a33e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • client
    • index.js
  • loaders
    • inject-hmr.js
  • scripts
    • index.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎client/index.js‎

Copy file name to clipboardExpand all lines: client/index.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,17 @@ export default class Nullstack {
109109

110110
if (module.hot) {
111111
const socket = new WebSocket('ws' + router.base.slice(4) + '/ws');
112-
window.lastHash
112+
Nullstack.lastHash
113113
socket.onmessage = async function (e) {
114114
const data = JSON.parse(e.data)
115115
if (data.type === 'NULLSTACK_SERVER_STARTED') {
116-
(window.needsReload || !environment.hot) && window.location.reload()
116+
(Nullstack.needsReload || !environment.hot) && window.location.reload()
117117
} else if (data.type === 'hash') {
118118
const newHash = data.data.slice(20)
119-
if (newHash === window.lastHash) {
120-
window.needsReload = true
119+
if (newHash === Nullstack.lastHash) {
120+
Nullstack.needsReload = true
121121
} else {
122-
window.lastHash = newHash
122+
Nullstack.lastHash = newHash
123123
}
124124
}
125125
};
Collapse file

‎loaders/inject-hmr.js‎

Copy file name to clipboardExpand all lines: loaders/inject-hmr.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ module.exports = function (source) {
2626

2727
return source + `
2828
if (module.hot) {
29-
if (window.needsClientReload) {
29+
if (Nullstack.needsClientReload) {
3030
window.location.reload()
3131
}
3232
module.hot.accept()
33-
window.needsClientReload = true
33+
Nullstack.needsClientReload = true
3434
module.hot.accept('${klassPath}', () => {
3535
Nullstack.hotReload(${klassName})
3636
})
Collapse file

‎scripts/index.js‎

Copy file name to clipboardExpand all lines: scripts/index.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async function start({ input, port, env, mode = 'spa', cold, disk, loader = 'swc
8585
host: process.env['NULLSTACK_PROJECT_DOMAIN'],
8686
devMiddleware: {
8787
index: false,
88-
stats: 'none',
88+
stats: 'errors-only',
8989
writeToDisk,
9090
},
9191
client: {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.