Don't show Shortcut button on Android TV

This commit is contained in:
redphx 2024-12-07 09:42:29 +07:00
parent cf4609d87b
commit 07b2e47757
2 changed files with 2 additions and 2 deletions

View File

@ -8927,7 +8927,7 @@ class ProductDetailsPage {
let $container = document.querySelector("div[class*=ActionButtons-module__container]");
if ($container && $container.parentElement) $container.parentElement.appendChild(CE("div", {
class: "bx-product-details-buttons"
}, BX_FLAGS.DeviceInfo.deviceType.startsWith("android") && ProductDetailsPage.$btnShortcut, ProductDetailsPage.$btnWallpaper));
}, ["android-handheld", "android"].includes(BX_FLAGS.DeviceInfo.deviceType) && ProductDetailsPage.$btnShortcut, ProductDetailsPage.$btnWallpaper));
}, 500);
}
}

View File

@ -40,7 +40,7 @@ export class ProductDetailsPage {
$container.parentElement.appendChild(CE('div', {
class: 'bx-product-details-buttons',
},
BX_FLAGS.DeviceInfo.deviceType.startsWith('android') && ProductDetailsPage.$btnShortcut,
['android-handheld', 'android'].includes(BX_FLAGS.DeviceInfo.deviceType) && ProductDetailsPage.$btnShortcut,
ProductDetailsPage.$btnWallpaper,
));
}