Merge branch 'camjac251-location.hostname' into safe.fiery.me

This commit is contained in:
Bobby Wibowo 2020-07-02 15:11:21 +07:00
commit 2f7d1533e3
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

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