move history api feature detection to utils
This commit is contained in:
parent
dbbd82579e
commit
e4faf54804
2 changed files with 6 additions and 2 deletions
|
@ -12,4 +12,6 @@ export const isAndroid = /android/gi.test( UA );
|
|||
// up slides. Zoom produces crisper results but has a lot of
|
||||
// xbrowser quirks so we only use it in whitelisted browsers.
|
||||
export const supportsZoom = 'zoom' in testElement.style && !isMobile &&
|
||||
( isChrome || /Version\/[\d\.]+.*Safari/.test( UA ) );
|
||||
( isChrome || /Version\/[\d\.]+.*Safari/.test( UA ) );
|
||||
|
||||
export const supportsHistoryAPI = typeof window.history.replaceState === 'function' && !/PhantomJS/.test( UA );
|
Loading…
Add table
Add a link
Reference in a new issue