PHP 8.2.30
Preview: browser.ts Size: 1.32 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/prosemirror-view/src/browser.ts

const nav = typeof navigator != "undefined" ? navigator : null
const doc = typeof document != "undefined" ? document : null
const agent = (nav && nav.userAgent) || ""

const ie_edge = /Edge\/(\d+)/.exec(agent)
const ie_upto10 = /MSIE \d/.exec(agent)
const ie_11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(agent)

export const ie = !!(ie_upto10 || ie_11up || ie_edge)
export const ie_version = ie_upto10 ? (document as any).documentMode : ie_11up ? +ie_11up[1] : ie_edge ? +ie_edge[1] : 0
export const gecko = !ie && /gecko\/(\d+)/i.test(agent)
export const gecko_version = gecko && +(/Firefox\/(\d+)/.exec(agent) || [0, 0])[1]

const _chrome = !ie && /Chrome\/(\d+)/.exec(agent)
export const chrome = !!_chrome
export const chrome_version = _chrome ? +_chrome[1] : 0
export const safari = !ie && !!nav && /Apple Computer/.test(nav.vendor)
// Is true for both iOS and iPadOS for convenience
export const ios = safari && (/Mobile\/\w+/.test(agent) || !!nav && nav.maxTouchPoints > 2)
export const mac = ios || (nav ? /Mac/.test(nav.platform) : false)
export const windows = nav ? /Win/.test(nav.platform) : false
export const android = /Android \d/.test(agent)
export const webkit = !!doc && "webkitFontSmoothing" in doc.documentElement.style
export const webkit_version = webkit ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0

Directory Contents

Dirs: 0 × Files: 13

Name Size Perms Modified Actions
1.32 KB lrw-r--r-- 2026-02-28 00:28:30
Edit Download
13.10 KB lrw-r--r-- 2026-02-28 00:28:32
Edit Download
11.45 KB lrw-r--r-- 2026-02-28 00:28:34
Edit Download
30.16 KB lrw-r--r-- 2026-02-28 00:28:36
Edit Download
5.75 KB lrw-r--r-- 2026-02-28 00:28:38
Edit Download
16.61 KB lrw-r--r-- 2026-02-28 00:28:38
Edit Download
23.16 KB lrw-r--r-- 2026-02-28 00:28:42
Edit Download
15.08 KB lrw-r--r-- 2026-02-28 00:28:42
Edit Download
35.96 KB lrw-r--r-- 2026-02-28 00:28:48
Edit Download
32.22 KB lrw-r--r-- 2026-02-28 00:28:50
Edit Download
555 B lrw-r--r-- 2026-02-28 00:28:28
Edit Download
8.77 KB lrw-r--r-- 2026-02-28 00:28:52
Edit Download
62.32 KB lrw-r--r-- 2026-02-28 00:28:56
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).