From 85e5173abe95346bce6b4264376d8231fb7a9ca8 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Fri, 14 Apr 2017 16:11:37 -0700 Subject: [PATCH] Fix embedded location --- scripts/system/snapshot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/system/snapshot.js b/scripts/system/snapshot.js index ee441278aa..0198866f26 100644 --- a/scripts/system/snapshot.js +++ b/scripts/system/snapshot.js @@ -90,12 +90,12 @@ function onMessage(message) { needsLogin = true; submessage.share = false; shareAfterLogin = true; - snapshotToShareAfterLogin = {path: submessage.localPath, href: submessage.href}; + snapshotToShareAfterLogin = {path: submessage.localPath, href: submessage.href || href}; } if (submessage.share) { print('sharing', submessage.localPath); outstanding = true; - Window.shareSnapshot(submessage.localPath, submessage.href); + Window.shareSnapshot(submessage.localPath, submessage.href || href); } else { print('not sharing', submessage.localPath); }