Update index.js

`location.host` contains the hostname and the port while `location.hostname` is only the hostname
This commit is contained in:
frennkie 2020-07-12 16:24:18 +02:00 committed by GitHub
parent e746dcd787
commit 68e41789ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
Vue.component(VueQrcode.name, VueQrcode); Vue.component(VueQrcode.name, VueQrcode);
var locationPath = [window.location.protocol, '//', window.location.hostname, window.location.pathname].join(''); var locationPath = [window.location.protocol, '//', window.location.host, window.location.pathname].join('');
var mapWithdrawLink = function (obj) { var mapWithdrawLink = function (obj) {
obj._data = _.clone(obj); obj._data = _.clone(obj);