Fix import and Chromecast on Edge Chromium

This commit is contained in:
MrTimscampi 2020-08-11 15:37:48 +02:00
parent 0643e29404
commit 8a67b5e41f

View File

@ -26,7 +26,7 @@ function getBaseProfileOptions(item) {
function getDeviceProfile(item, options = {}) { function getDeviceProfile(item, options = {}) {
return new Promise(function (resolve) { return new Promise(function (resolve) {
import(['browserdeviceprofile']).then(({default: profileBuilder}) => { import('browserdeviceprofile').then(({default: profileBuilder}) => {
let profile; let profile;
if (window.NativeShell) { if (window.NativeShell) {
@ -262,7 +262,7 @@ const supportedFeatures = function () {
features.push('fileinput'); features.push('fileinput');
} }
if (browser.chrome) { if (browser.chrome || browser.edgeChromium) {
features.push('chromecast'); features.push('chromecast');
} }