fixed protocol
parent
a380d50005
commit
61d935d42a
|
@ -17,7 +17,7 @@ export const COMMON_HEADERS = {
|
||||||
|
|
||||||
export const HMR_SCRIPT = `
|
export const HMR_SCRIPT = `
|
||||||
!(function(){
|
!(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) {
|
ws.addEventListener('open', function (r) {
|
||||||
console.log('vue-live hmr ready...')
|
console.log('vue-live hmr ready...')
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@bytedo/vue-live",
|
"name": "@bytedo/vue-live",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"bin": {
|
"bin": {
|
||||||
"vue-live": "index.js"
|
"vue-live": "index.js"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue