Ensure site authorization toggle is saved (#842)
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
# CHANGELOG
|
||||
|
||||
## master
|
||||
|
||||
Changes:
|
||||
|
||||
- Ensure site authorization toggle is saved
|
||||
|
||||
|
||||
## 0.40.3 Sep 18, 2021
|
||||
|
||||
**Important** Not published to the stores, aligns with latest released packages.
|
||||
|
||||
@@ -293,9 +293,8 @@ export default class State {
|
||||
|
||||
assert(entry, `The source ${url} is not known`);
|
||||
|
||||
const newAllowState = !entry.isAllowed;
|
||||
|
||||
this.#authUrls[url].isAllowed = newAllowState;
|
||||
this.#authUrls[url].isAllowed = !entry.isAllowed;
|
||||
this.saveCurrentAuthList();
|
||||
|
||||
return this.#authUrls;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user