Compare commits
No commits in common. "7e6c0f0123995793189c10824708a66ba4ca0fdc" and "7fb247903339a43642ccf27c5fbd509b327f303f" have entirely different histories.
7e6c0f0123
...
7fb2479033
2
index.js
2
index.js
|
@ -67,7 +67,7 @@ std.out = function (...args) {
|
||||||
const HMR_SCRIPT = `
|
const HMR_SCRIPT = `
|
||||||
<script>
|
<script>
|
||||||
!(function http_hmr(){
|
!(function http_hmr(){
|
||||||
var ws = new WebSocket(\`\${location.protocol === 'https:' ? 'wss' : 'ws'}://\${location.host}/ws-http-hmr\`)
|
var ws = new WebSocket(\`ws://\${location.host}/ws-http-hmr\`)
|
||||||
ws.addEventListener('open', function (r) {
|
ws.addEventListener('open', function (r) {
|
||||||
if(http_hmr.closed){
|
if(http_hmr.closed){
|
||||||
delete http_hmr.closed
|
delete http_hmr.closed
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "simple-http",
|
"name": "simple-http",
|
||||||
"displayName": "simple http",
|
"displayName": "simple http",
|
||||||
"description": "🔥 简单的http服务器, 方便临时调试html",
|
"description": "🔥 简单的http服务器, 方便临时调试html",
|
||||||
"version": "1.5.2",
|
"version": "1.5.1",
|
||||||
"publisher": "yutent",
|
"publisher": "yutent",
|
||||||
"author": "Yutent [@yutent]",
|
"author": "Yutent [@yutent]",
|
||||||
"icon": "logo.png",
|
"icon": "logo.png",
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.wkit.fun/yutent/http.server.git"
|
"url": "https://github.com/yutent/http.server.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"http.server",
|
"http.server",
|
||||||
|
|
Loading…
Reference in New Issue