diff --git a/index.html b/index.html
index bc27f932ce8a6514e7b5c896cb607dbae10d2420..cc1629f530e3fcc0968bb813dbee971eec6b4d4e 100644
--- a/index.html
+++ b/index.html
@@ -82,7 +82,10 @@
             iframe.src = url;
 
             var checkIframeState = setInterval(function(){
-                var src = iframe.contentDocument.location.href;
+                var src = "";
+                try {
+                    src = iframe.contentDocument.location.href;
+                }
 
                 if(src.startsWith(redirectUrl)){
                     clearInterval(checkIframeState);