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

location.hostname() is unsupported by Opera and gives an error using the latest ESLint gulp plugin.
This commit is contained in:
camjac251 2020-07-01 13:59:22 -05:00 committed by GitHub
parent 1981159805
commit 7a23707555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {