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

Merge pull request #1894 from dmitrylyzo/fix-old-webos

Fix webOS 1.2
This commit is contained in:
dkanada 2020-10-01 14:03:08 +09:00 committed by GitHub
commit 74b31ea2fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 39 deletions

View file

@ -37,7 +37,6 @@ import 'css!components/viewManager/viewContainer';
const newViewInfo = normalizeNewView(options, isPluginpage);
const newView = newViewInfo.elem;
return new Promise((resolve) => {
const currentPage = allPages[pageIndex];
if (currentPage) {
@ -83,7 +82,11 @@ import 'css!components/viewManager/viewContainer';
}
allPages[pageIndex] = view;
setControllerClass(view, options).then(() => {
return setControllerClass(view, options)
// Timeout for polyfilled CustomElements (webOS 1.2)
.then(() => new Promise((resolve) => setTimeout(resolve, 0)))
.then(() => {
if (onBeforeChange) {
onBeforeChange(view, false, options);
}
@ -101,8 +104,7 @@ import 'css!components/viewManager/viewContainer';
$.mobile.activePage = view;
}
resolve(view);
});
return view;
});
}
}

View file

@ -15,7 +15,7 @@ module.exports = merge(common, {
rules: [
{
test: /\.js$/,
exclude: /node_modules[\\/](?!date-fns|epubjs|jellyfin-apiclient|query-string|split-on-first|strict-uri-encode|xmldom)/,
exclude: /node_modules[\\/](?!date-fns|epubjs|libarchive|jellyfin-apiclient|query-string|split-on-first|strict-uri-encode|xmldom)/,
use: {
loader: 'babel-loader',
options: {

View file

@ -8,7 +8,7 @@ module.exports = merge(common, {
rules: [
{
test: /\.js$/,
exclude: /node_modules[\\/](?!date-fns|epubjs|jellyfin-apiclient|query-string|split-on-first|strict-uri-encode|xmldom)/,
exclude: /node_modules[\\/](?!date-fns|epubjs|libarchive|jellyfin-apiclient|query-string|split-on-first|strict-uri-encode|xmldom)/,
use: {
loader: 'babel-loader',
options: {