1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update alerts

This commit is contained in:
Luke Pulverenti 2016-05-25 15:12:38 -04:00
parent 7016a4c624
commit 69a410794c
5 changed files with 12 additions and 12 deletions

View file

@ -2098,19 +2098,19 @@ var AppInfo = {};
var preferNativeAlerts = browser.mobile || browser.tv || browser.xboxOne;
// use native alerts if preferred and supported (not supported in opera tv)
if (preferNativeAlerts && globalScope.alert) {
if (preferNativeAlerts && window.alert) {
define("alert", [embyWebComponentsBowerPath + "/alert/nativealert"], returnFirstDependency);
} else {
define("alert", [embyWebComponentsBowerPath + "/alert/alert"], returnFirstDependency);
}
if (preferNativeAlerts && globalScope.confirm) {
if (preferNativeAlerts && window.confirm) {
define("confirm", [embyWebComponentsBowerPath + "/confirm/nativeconfirm"], returnFirstDependency);
} else {
define("confirm", [embyWebComponentsBowerPath + "/confirm/confirm"], returnFirstDependency);
}
if (preferNativeAlerts && globalScope.prompt) {
if (preferNativeAlerts && window.prompt) {
define("prompt", [embyWebComponentsBowerPath + "/prompt/nativeprompt"], returnFirstDependency);
} else {
define("prompt", [embyWebComponentsBowerPath + "/prompt/prompt"], returnFirstDependency);