fx115: Fix build error due to change to plugin homepage links

This commit is contained in:
Dan Stillman 2024-03-30 04:55:36 -04:00
parent 1ae4d12a39
commit 4ece2fdd19

View file

@ -292,8 +292,8 @@ function modify_omni {
# Open plugin links in external browser
replace_line 'let homepageURL = homepageRow.querySelector\(\"a\"\);' 'let homepageURL = homepageRow.querySelector(\"\.text-link\");' $file
replace_line 'homepageURL.href = addon.homepageURL;' 'homepageURL.setAttribute("href", addon.homepageURL);' $file
replace_line '<a target=\"_blank\" data-telemetry-name=\"homepage\" dir=\"ltr\"><\/a>' \
'<label target=\"_blank\" class=\"text-link\" data-telemetry-name=\"homepage\" dir=\"ltr\"><\/label>' \
replace_line '<a target="_blank" dir="ltr"><\/a>' \
'<label target="_blank" class="text-link" dir="ltr"><\/label>' \
chrome/toolkit/content/mozapps/extensions/aboutaddons.html
# Hide Recommendations tab in sidebar and recommendations in main pane