mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove flex support checking - should be supported anyway
This commit is contained in:
parent
41ba09a316
commit
7952511691
3 changed files with 0 additions and 50 deletions
|
@ -87,10 +87,6 @@
|
||||||
transform: scale(1.3);
|
transform: scale(1.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.slider-no-webkit-thumb::-webkit-slider-thumb {
|
|
||||||
opacity: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mdl-slider::-moz-range-thumb {
|
.mdl-slider::-moz-range-thumb {
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
width: 1.08em;
|
width: 1.08em;
|
||||||
|
|
|
@ -148,9 +148,6 @@ define(['browser', 'dom', 'layoutManager', 'keyboardnavigation', 'css!./emby-sli
|
||||||
this.classList.add('mdl-slider');
|
this.classList.add('mdl-slider');
|
||||||
this.classList.add('mdl-js-slider');
|
this.classList.add('mdl-js-slider');
|
||||||
|
|
||||||
if (browser.noFlex) {
|
|
||||||
this.classList.add('slider-no-webkit-thumb');
|
|
||||||
}
|
|
||||||
if (browser.edge || browser.msie) {
|
if (browser.edge || browser.msie) {
|
||||||
this.classList.add('slider-browser-edge');
|
this.classList.add('slider-browser-edge');
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,45 +53,6 @@ define([], function () {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function isStyleSupported(prop, value) {
|
|
||||||
|
|
||||||
if (typeof window === 'undefined') {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// If no value is supplied, use "inherit"
|
|
||||||
value = arguments.length === 2 ? value : 'inherit';
|
|
||||||
// Try the native standard method first
|
|
||||||
if ('CSS' in window && 'supports' in window.CSS) {
|
|
||||||
return window.CSS.supports(prop, value);
|
|
||||||
}
|
|
||||||
// Check Opera's native method
|
|
||||||
if ('supportsCSS' in window) {
|
|
||||||
return window.supportsCSS(prop, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
// need try/catch because it's failing on tizen
|
|
||||||
|
|
||||||
try {
|
|
||||||
// Convert to camel-case for DOM interactions
|
|
||||||
var camel = prop.replace(/-([a-z]|[0-9])/ig, function (all, letter) {
|
|
||||||
return (letter + '').toUpperCase();
|
|
||||||
});
|
|
||||||
// Create test element
|
|
||||||
var el = document.createElement('div');
|
|
||||||
// Check if the property is supported
|
|
||||||
var support = (camel in el.style);
|
|
||||||
// Assign the property and value to invoke
|
|
||||||
// the CSS interpreter
|
|
||||||
el.style.cssText = prop + ':' + value;
|
|
||||||
// Ensure both the property and value are
|
|
||||||
// supported and return
|
|
||||||
return support && (el.style[camel] !== '');
|
|
||||||
} catch (err) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function hasKeyboard(browser) {
|
function hasKeyboard(browser) {
|
||||||
|
|
||||||
if (browser.touch) {
|
if (browser.touch) {
|
||||||
|
@ -283,10 +244,6 @@ define([], function () {
|
||||||
browser.tv = isTv();
|
browser.tv = isTv();
|
||||||
browser.operaTv = browser.tv && userAgent.toLowerCase().indexOf('opr/') !== -1;
|
browser.operaTv = browser.tv && userAgent.toLowerCase().indexOf('opr/') !== -1;
|
||||||
|
|
||||||
if (!isStyleSupported('display', 'flex')) {
|
|
||||||
browser.noFlex = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (browser.mobile || browser.tv) {
|
if (browser.mobile || browser.tv) {
|
||||||
browser.slow = true;
|
browser.slow = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue