change window.location.host to window.location.hostname

location.hostname() is unsupported by Opera and gives an error using the latest ESLint gulp plugin.
master
camjac251 3 years ago committed by GitHub
parent 1981159805
commit 7a23707555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,7 +18,7 @@ page.prepareShareX = () => {
headers.age = page.uploadAge || ''
headers.striptags = page.stripTags || ''
const origin = (window.location.hostname + window.location.pathname).replace(/\/(dashboard)?$/, '')
const origin = (window.location.host + window.location.pathname).replace(/\/(dashboard)?$/, '')
const originClean = origin.replace(/\//g, '_')
const sharexConfObj = {

Loading…
Cancel
Save