commit b50237c5296d38c65bf0066aafac87410bc60487
parent 9f0fecbf89f75b0d58364e8792169203260ac0e1
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date: Mon, 12 Aug 2024 19:17:21 +0200
fix(composer): download button icon
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/composer/src/main/ts/modules/operaDownloadButton.ts b/composer/src/main/ts/modules/operaDownloadButton.ts
@@ -8,7 +8,6 @@ export default defineModule({
name: "Opera Download Button",
enabled: config => config.operaDownloadButton,
init() {
- const downloadIcon = assetCatalog.loadCatalog("share_sheet/res").downloadIcon
interceptComponent(
'context_chrome_header/src/ChromeHeaderRenderer',
'ChromeHeaderRenderer',
@@ -24,7 +23,7 @@ export default defineModule({
objectFit: "contain",
tint: "white"
}))
- jsx.setAttribute("src", downloadIcon)
+ jsx.setAttribute("src", assetCatalog.loadCatalog("share_sheet/res").downloadIcon)
jsx.setAttributeFunction("onTap", () => downloadLastOperaMedia(false))
jsx.setAttributeFunction("onLongPress", () => downloadLastOperaMedia(true))
jsx.endRender()