types: added checkBrowser return type

This commit is contained in:
Junseo Park 2021-02-23 08:34:34 +09:00
parent 6c2d46968a
commit 5e7f2c6025

View File

@ -52,7 +52,7 @@ export function supportsWebP() {
return false
}
export function checkBrowser() {
export function checkBrowser(): string {
const ua = navigator.userAgent
let tem
let M= ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+(\.\d+)?(\.\d+)?)/i) || []