Skip to content

Commit

Permalink
Firefox: Option Page Bug Fix (#80)
Browse files Browse the repository at this point in the history
* Fix theme breaking when enabling/disabling textbox selection/scrollbar options

* Make searchbar rounder
  • Loading branch information
ZimCodes authored Nov 7, 2021
1 parent e04eae1 commit e54a14a
Show file tree
Hide file tree
Showing 8 changed files with 14,572 additions and 3,093 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Changelog
---

# Unreleased
# 16.0.1 [Firefox: Fix Options]
- Fix theme breaking when enabling/disabling textbox selection/scrollbar options.
- Remove edges from search bar

# 16.0.0 [Jahy-sama will not be discouraged!]

Expand Down
2 changes: 1 addition & 1 deletion firefoxThemes/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Doki Theme for Firefox",
"short_name": "Doki Theme",
"version": "16.0.0",
"version": "16.0.1",
"description": "A theme collection of girls from various anime, manga, and visual novels series.",
"manifest_version": 2,
"icons": {
Expand Down
4 changes: 2 additions & 2 deletions firefoxThemes/modules/contentConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const registerOpt = {};
/*Apply styles configured by the options page*/
function updateOptions(element) {
if (element.optionValue !== undefined) {
browser.storage.local.set({[element.optionName]: element.optionValue});
browser.storage.local.set({[element.optionName]: !!element.optionValue});
registerTheme(element.optionName, element.optionValue);
} else {
browser.storage.local.set({[element.optionName]: true});
Expand Down Expand Up @@ -65,4 +65,4 @@ function getContentScripts(name) {
});
}

export {updateOptions};
export {updateOptions};
Loading

0 comments on commit e54a14a

Please sign in to comment.