Skip to content

Commit

Permalink
Changed the function
Browse files Browse the repository at this point in the history
  • Loading branch information
rishipandey2 committed Jan 28, 2025
1 parent 26414b1 commit cf0aa13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js&css/extension/www.youtube.com/general/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ extension.features.applyCustomFonts = function () {

// Call the function on load and when the setting changes
extension.features.applyCustomFonts();
extension.storage.on("change", function (key) {
if (key === "enable_custom_fonts") {
browser.storage.onChanged.addListener(function (changes, area) {
if (changes.enable_custom_fonts) {
extension.features.applyCustomFonts();
}
});
Expand Down

0 comments on commit cf0aa13

Please sign in to comment.