From cf9eafd9bf59da7e51befe0d5d74f9a9caeb30cf Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Wed, 20 Sep 2017 04:01:32 +0000 Subject: [PATCH] Better css preview refresh? --- webapp/titanembeds/static/js/usercss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/titanembeds/static/js/usercss.js b/webapp/titanembeds/static/js/usercss.js index 978f65b..9f37756 100644 --- a/webapp/titanembeds/static/js/usercss.js +++ b/webapp/titanembeds/static/js/usercss.js @@ -112,7 +112,7 @@ function update_live_preview(refresh=false) { if (refresh) { - $('#iframepreview')[0].contentWindow.location.reload(true); + $('#iframepreview').attr('src', $('#iframepreview').attr('src')); return; } $("#live_preview_warning").show();