From 713536d9ab4ec8c036040d5ec70fa5d92d0f98e1 Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Thu, 28 Feb 2019 23:49:47 +0530 Subject: [PATCH] detached-window: typo --- src/detached-window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detached-window.js b/src/detached-window.js index 72e035d..1253967 100644 --- a/src/detached-window.js +++ b/src/detached-window.js @@ -9,7 +9,7 @@ window.addEventListener('message', e => { frame.contentDocument.close(); }, 10); } - if (e.data && e.data.url && e.data.match(/preview\.html/)) { + if (e.data && e.data.url && e.data.url.match(/preview\.html/)) { document.querySelector('iframe').src = e.data.url; }