summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-03-24 21:30:20 +0100
committerWojtek Kosior <koszko@koszko.org>2022-03-24 21:30:20 +0100
commitb9a6179c1dbdc16860099bfb8831bf1f3d0f39a2 (patch)
tree84f5cfc629519187ea649debc76c6b2987f82f63 /common
parent65351e8c69659455096d1e37c4b78d1298fb7021 (diff)
downloadbrowser-extension-b9a6179c1dbdc16860099bfb8831bf1f3d0f39a2.tar.gz
browser-extension-b9a6179c1dbdc16860099bfb8831bf1f3d0f39a2.zip
fix payload creation for file:// URLs
Diffstat (limited to 'common')
-rw-r--r--common/patterns.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/patterns.js b/common/patterns.js
index 9e9d387..7381cdd 100644
--- a/common/patterns.js
+++ b/common/patterns.js
@@ -192,7 +192,7 @@ const patterns_doc_url =
function reconstruct_url(deco)
{
- const domain = deco.domain.join(".");
+ const domain = (deco.domain || []).join(".");
const path = ["", ...deco.path].join("/");
const trail = deco.trailing_slash ? "/" : "";
return `${deco.proto}://${domain}${path}${trail}`;