Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new WebExtension API modifying about:config #41

Merged
merged 16 commits into from
Dec 7, 2021
Merged

Conversation

rugk
Copy link
Owner

@rugk rugk commented Nov 28, 2021

The new API can modify the browser settings via about:config
i.e. overrideContentColorScheme, which basically is exactly the API to make this add-on work properly.

Fixes #5

The new API can modify the browser settings via `about:config`
i.e. `overrideContentColorScheme`, which basically is exactly the API to make this add-on work properly.

Fixes #5
They are not needed anymore.
This makes sure the dark mode is properly shown on the settings page.
* removes now not needed options
* fix a badge text error thrown due to invalid type being passed
@todo
Copy link

todo bot commented Nov 29, 2021

implement optional syncing!

// TODO: implement optional syncing!
// const shouldBeSynced = await AddonSettings.get("shouldBeSynced");
// if (shouldBeSynced) {
// const currentBrowserSetting = (await browser.browserSettings.overrideContentColorScheme.get({})).value;
// const syncedSetting = await AddonSettings.get("fakedColorStatus");


This comment was generated by todo based on a TODO comment in 770175c in #41. cc @rugk.

Adds a trigger, so changes from somewhere else like the action button do work too.
* removes now not needed options
* fix a badge text error thrown due to invalid type being passed
@rugk rugk marked this pull request as ready for review December 7, 2021 23:02
@rugk
Copy link
Owner Author

rugk commented Dec 7, 2021

Release-Test done

@rugk rugk linked an issue Dec 7, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment