Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Waley-Wang committed Apr 8, 2023
1 parent 714aa32 commit af51f63
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions FirefoxExtension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ function changeFontSize() {



//changeFonts();
changeFonts();
changeFontSize();

// Load the saved font preference, if any, when the content script is loaded
browser.storage.sync.get('font').then(function(result) {
var selectedFont = result.font;
console.log(selectedFont)
if (selectedFont) {
document.body.style.fontFamily = selectedFont;
}
});
// // Load the saved font preference, if any, when the content script is loaded
// browser.storage.sync.get('font').then(function(result) {
// var selectedFont = result.font;
// console.log(selectedFont)
// if (selectedFont) {
// document.body.style.fontFamily = selectedFont;
// }
// });

0 comments on commit af51f63

Please sign in to comment.