about summary refs log tree commit diff stats
path: root/src/assets/javascripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/assets/javascripts')
-rw-r--r--src/assets/javascripts/services.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js
index 48c0a2db..1c84eff0 100644
--- a/src/assets/javascripts/services.js
+++ b/src/assets/javascripts/services.js
@@ -525,7 +525,7 @@ function rewrite(url, originUrl, frontend, randomInstance) {
       if (artReg) return `${randomInstance}/post/${artReg[1]}/${artReg[2]}${url.search}`
 
       const userReg = /^\/([^\/]+)$/.exec(url.pathname)
-      if (userReg)return `${randomInstance}/group_user?q=${userReg[1]}&type=about`
+      if (userReg) return `${randomInstance}/group_user?q=${userReg[1]}&type=about`
 
       const galleryReg = /^\/(.*?)\/gallery(\/$|$)$/.exec(url.pathname)
       if (galleryReg) return `${randomInstance}/group_user?q=${galleryReg[1]}&type=gallery`
@@ -941,6 +941,7 @@ async function copyRaw(url) {
  * @param {URL} url
  */
 function isException(url) {
+  if (!options) return false
   if (!options.exceptions) return false
   let exceptions = options.exceptions
   if (exceptions && url) {