Fix extconfpatches

This commit is contained in:
Tamius Han 2021-06-13 02:18:47 +02:00
parent c43b1daa42
commit c14aa99e5b

View File

@ -504,15 +504,11 @@ const ExtensionConfPatch = [
}, {
forVersion: '5.0.4',
updateFn: (userOptions, defaultOptions) => {
try {
userOptions.sites['wwww.disneyplus.com'].DOM.player = {
... userOptions.sites['wwww.disneyplus.com'].DOM.player,
querySelectors: ".btm-media-client-element",
useRelativeAncestor: false,
videoAncestor: 1
}
} catch (e) {
// do nothing
userOptions.sites['www.disneyplus.com'].DOM.player = {
... userOptions.sites['www.disneyplus.com'].DOM.player,
querySelectors: ".btm-media-client-element",
useRelativeAncestor: true,
videoAncestor: 1
}
}
}