fix(core): update

This commit is contained in:
Philipp Kunz 2020-09-15 20:24:11 +00:00
parent 6d6c92eee4
commit 3cb0aceaad

View File

@ -3,7 +3,8 @@ import { DomTools } from './domtools.classes.domtools';
/**
* changes scrollbar styles to be consistent across OS borders
*/
export const scrollBarStyles = `
export const scrollBarStyles = (() => {
const returnStyles = navigator.userAgent.indexOf("Windows") !== -1 ? `
/* width */
::-webkit-scrollbar {
width: 8px;
@ -23,7 +24,8 @@ export const scrollBarStyles = `
::-webkit-scrollbar-thumb:hover {
background: #777;
}
`;
` : ``;
})();
export const setupGlobalTheme = (domToolsInstance: DomTools) => {
const styles = `