MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / redirectHead

Method redirectHead

contributed/modClock/web.js:75–77  ·  view source on GitHub ↗
(name, sec=3, path="")

Source from the content-addressed store, hash-verified

73 }
74
75 static redirectHead(name, sec=3, path="") {
76 return `<html><head><meta http-equiv="refresh" content="${sec}; url=http://${name}.local${path.length?path:""}"><title>${name}</title></head>`;
77 }
78
79 static bodyPrefix() {
80 return `<body>`;

Callers 1

configServerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected