fixed protocol

pull/1/head
yutent 2023-02-08 18:14:06 +08:00
parent a380d50005
commit 61d935d42a
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ export const COMMON_HEADERS = {
export const HMR_SCRIPT = `
!(function(){
var ws = new WebSocket(\`ws\${location.protocol === 'https' ? 's' : ''}://\${location.host}/ws-vue-live\`)
var ws = new WebSocket(\`ws\${location.protocol === 'https:' ? 's' : ''}://\${location.host}/ws-vue-live\`)
ws.addEventListener('open', function (r) {
console.log('vue-live hmr ready...')

View File

@ -1,7 +1,7 @@
{
"name": "@bytedo/vue-live",
"type": "module",
"version": "0.1.3",
"version": "0.1.4",
"bin": {
"vue-live": "index.js"
},