diff --git a/ghost/sdk/theme-dropin/src/index.js b/ghost/sdk/theme-dropin/src/index.js index 0f94f8c913..3f95f7a65d 100644 --- a/ghost/sdk/theme-dropin/src/index.js +++ b/ghost/sdk/theme-dropin/src/index.js @@ -10,10 +10,14 @@ function reload(success) { } function show(el) { - el.style.display = 'block'; + if (el) { + el.style.display = 'block'; + } } function hide(el) { - el.style.display = 'none'; + if (el) { + el.style.display = 'none'; + } } const version = 'v2';