FIX run box-shaddow-monkeypatch only on electron
This commit is contained in:
parent
dc04a6d789
commit
c6d0f92eba
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user