FIX run box-shaddow-monkeypatch only on electron

This commit is contained in:
pubkey 2017-03-06 17:32:22 +01:00
parent dc04a6d789
commit c6d0f92eba

View File

@ -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();