Fix the Shortcut button not showing in product page

This commit is contained in:
redphx 2024-12-06 18:16:58 +07:00
parent 1ea1afe4d4
commit 4777f90a53
2 changed files with 2 additions and 2 deletions

View File

@ -8896,7 +8896,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 === "android" && ProductDetailsPage.$btnShortcut, ProductDetailsPage.$btnWallpaper));
}, BX_FLAGS.DeviceInfo.deviceType.startsWith("android") && 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 === 'android' && ProductDetailsPage.$btnShortcut,
BX_FLAGS.DeviceInfo.deviceType.startsWith('android') && ProductDetailsPage.$btnShortcut,
ProductDetailsPage.$btnWallpaper,
));
}