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

Merge pull request #214 from tbraeutigam/NativeShell-Filesystem-Fallback

Fix Issue #213 - Direct Playback broken in Chrome 73
This commit is contained in:
Bond-009 2019-03-27 15:46:43 +01:00 committed by GitHub
commit 2b6865b0bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,11 +6,13 @@ define([], function () {
if (window.NativeShell && window.NativeShell.FileSystem) { if (window.NativeShell && window.NativeShell.FileSystem) {
return window.NativeShell.FileSystem.fileExists(path); return window.NativeShell.FileSystem.fileExists(path);
} }
return Promise.reject();
}, },
directoryExists: function (path) { directoryExists: function (path) {
if (window.NativeShell && window.NativeShell.FileSystem) { if (window.NativeShell && window.NativeShell.FileSystem) {
return window.NativeShell.FileSystem.directoryExists(path); return window.NativeShell.FileSystem.directoryExists(path);
} }
return Promise.reject();
} }
}; };
}); });