From 00c16453004085184a73075457ad653d1c25c03f Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Fri, 29 Jan 2016 16:59:51 -0800 Subject: [PATCH] feat(screenshot-mode): Minor fix to unmount method --- internal_packages/screenshot-mode/lib/main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal_packages/screenshot-mode/lib/main.coffee b/internal_packages/screenshot-mode/lib/main.coffee index 4c4c7e0d3..223f7e307 100644 --- a/internal_packages/screenshot-mode/lib/main.coffee +++ b/internal_packages/screenshot-mode/lib/main.coffee @@ -15,7 +15,7 @@ module.exports = document.body.appendChild(style) deactivate: -> - if style.parentElement + if style and style.parentElement document.body.removeChild(style) serialize: ->