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

use strict

This commit is contained in:
Luke Pulverenti 2016-10-23 01:11:46 -04:00
parent fcbb3ccc58
commit 88d6c63263
180 changed files with 190 additions and 1 deletions

View file

@ -1,4 +1,5 @@
function getWindowLocationSearch(win) {
'use strict';
var search = (win || window).location.search;
@ -14,6 +15,8 @@
}
function getParameterByName(name, url) {
'use strict';
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS, "i");
@ -883,6 +886,7 @@ var Dashboard = {
var AppInfo = {};
(function () {
'use strict';
function setAppInfo() {
@ -1023,7 +1027,7 @@ var AppInfo = {};
var capabilities = Dashboard.capabilities();
capabilities.DeviceProfile = deviceProfile;
connectionManager = new MediaBrowser.ConnectionManager(credentialProviderInstance, appInfo.appName, appInfo.appVersion, appInfo.deviceName, appInfo.deviceId, capabilities, window.devicePixelRatio);
var connectionManager = new MediaBrowser.ConnectionManager(credentialProviderInstance, appInfo.appName, appInfo.appVersion, appInfo.deviceName, appInfo.deviceId, capabilities, window.devicePixelRatio);
defineConnectionManager(connectionManager);
bindConnectionManagerEvents(connectionManager, events, userSettings);
@ -2802,6 +2806,7 @@ var AppInfo = {};
})();
function pageClassOn(eventName, className, fn) {
'use strict';
document.addEventListener(eventName, function (e) {
@ -2813,6 +2818,7 @@ function pageClassOn(eventName, className, fn) {
}
function pageIdOn(eventName, id, fn) {
'use strict';
document.addEventListener(eventName, function (e) {
@ -2824,6 +2830,7 @@ function pageIdOn(eventName, id, fn) {
}
pageClassOn('viewinit', "page", function () {
'use strict';
var page = this;
@ -2864,6 +2871,7 @@ pageClassOn('viewinit', "page", function () {
});
pageClassOn('viewshow', "page", function () {
'use strict';
var page = this;