From 7a2370755512d9c125803f698fef3864347d71d6 Mon Sep 17 00:00:00 2001 From: camjac251 Date: Wed, 1 Jul 2020 13:59:22 -0500 Subject: [PATCH] change window.location.host to window.location.hostname location.hostname() is unsupported by Opera and gives an error using the latest ESLint gulp plugin. --- src/js/misc/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/misc/utils.js b/src/js/misc/utils.js index 8e3a6ea..143e162 100644 --- a/src/js/misc/utils.js +++ b/src/js/misc/utils.js @@ -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 = {