don't write '#/' to url on first slide, remove history api feature detection

This commit is contained in:
Hakim El Hattab
2020-06-02 09:08:00 +02:00
parent 7ebade7248
commit c91074761a
4 changed files with 16 additions and 10 deletions

View File

@ -12,6 +12,4 @@ 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 ) );
export const supportsHistoryAPI = typeof window.history.replaceState === 'function' && !/PhantomJS/.test( UA );
( isChrome || /Version\/[\d\.]+.*Safari/.test( UA ) );