From d4538305b9bcaada5270788988b37a357d609b6e Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Mon, 29 Apr 2019 17:39:33 -0700 Subject: [PATCH] update location origin for embeds --- components/ExportMenu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ExportMenu.js b/components/ExportMenu.js index 14825a4..99aaab1 100644 --- a/components/ExportMenu.js +++ b/components/ExportMenu.js @@ -9,13 +9,13 @@ import Popout, { managePopout } from './Popout' const toIFrame = url => ` ` -const toURL = url => encodeURI(`https://carbon.now.sh/embed${url}`) +const toURL = url => encodeURI(`${location.origin}/embed${url}`) const MAX_PAYLOAD_SIZE = 5e6 // bytes function verifyPayloadSize(str) {