From c6d0f92ebaf9f0b7dccdc258e25c5d35000a3e2f Mon Sep 17 00:00:00 2001 From: pubkey Date: Mon, 6 Mar 2017 17:32:22 +0100 Subject: [PATCH] FIX run box-shaddow-monkeypatch only on electron --- src/public/javascript.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/public/javascript.js b/src/public/javascript.js index 3913642..c68898e 100755 --- a/src/public/javascript.js +++ b/src/public/javascript.js @@ -180,13 +180,17 @@ const checkFont = () => { ) fixFont(resume, page); }; +const isElectron = () => { + return window && window.process && window.process.type; +} + /** * fixes resume */ const fixResume = () => { if (!isResume()) return; checkFont(); - fixBoxShadows(); + if (isElectron()) fixBoxShadows(); }; fixResume();