only use custom scrollbar on non-mac
This commit is contained in:
parent
d012300fe9
commit
d0773cec4a
2 changed files with 3 additions and 8 deletions
|
@ -1489,5 +1489,6 @@
|
||||||
"Learn more about LBRY Credits on %DOMAIN%": "Learn more about LBRY Credits on %DOMAIN%",
|
"Learn more about LBRY Credits on %DOMAIN%": "Learn more about LBRY Credits on %DOMAIN%",
|
||||||
"Results boosted by %lbc%": "Results boosted by %lbc%",
|
"Results boosted by %lbc%": "Results boosted by %lbc%",
|
||||||
"This will be visible in a few minutes.": "This will be visible in a few minutes.",
|
"This will be visible in a few minutes.": "This will be visible in a few minutes.",
|
||||||
|
"Trending for #Agnostic": "Trending for #Agnostic",
|
||||||
"--end--": "--end--"
|
"--end--": "--end--"
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,9 +37,7 @@ import {
|
||||||
} from 'web/effects/use-degraded-performance';
|
} from 'web/effects/use-degraded-performance';
|
||||||
// @endif
|
// @endif
|
||||||
export const MAIN_WRAPPER_CLASS = 'main-wrapper';
|
export const MAIN_WRAPPER_CLASS = 'main-wrapper';
|
||||||
// @if TARGET='app'
|
export const IS_MAC = navigator.userAgent.indexOf('Mac OS X') !== -1;
|
||||||
export const IS_MAC = process.platform === 'darwin';
|
|
||||||
// @endif
|
|
||||||
|
|
||||||
// button numbers pulled from https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
|
// button numbers pulled from https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
|
||||||
const MOUSE_BACK_BTN = 3;
|
const MOUSE_BACK_BTN = 3;
|
||||||
|
@ -135,11 +133,7 @@ function App(props: Props) {
|
||||||
const sanitizedReferrerParam = rawReferrerParam && rawReferrerParam.replace(':', '#');
|
const sanitizedReferrerParam = rawReferrerParam && rawReferrerParam.replace(':', '#');
|
||||||
const shouldHideNag = pathname.startsWith(`/$/${PAGES.EMBED}`) || pathname.startsWith(`/$/${PAGES.AUTH_VERIFY}`);
|
const shouldHideNag = pathname.startsWith(`/$/${PAGES.EMBED}`) || pathname.startsWith(`/$/${PAGES.AUTH_VERIFY}`);
|
||||||
const userId = user && user.id;
|
const userId = user && user.id;
|
||||||
|
const useCustomScrollbar = !IS_MAC;
|
||||||
let useCustomScrollbar = true;
|
|
||||||
// @if TARGET='app'
|
|
||||||
useCustomScrollbar = !IS_MAC;
|
|
||||||
// @endif
|
|
||||||
|
|
||||||
let uri;
|
let uri;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue