Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1fdeba8b96 |
@@ -393,11 +393,12 @@ function init(_ctx) {
|
||||
|
||||
// Each change is made inside the save, holding the lock. Then
|
||||
// followStoredSettings() in src/popup/index.js never takes this page's
|
||||
// unsaved change for another page's. The screens under Settings were drawn
|
||||
// under the old setting. So each change makes every screen but Settings count as not yet
|
||||
// drawn, as a network switch does. Back then draws again any screen a
|
||||
// reopened popup can draw. Back only unhides Welcome, so its boxes are set
|
||||
// here too.
|
||||
// unsaved change for another page's.
|
||||
//
|
||||
// The screens under Settings were drawn under the old setting. So each
|
||||
// change makes every screen but Settings count as not yet drawn, as a
|
||||
// network switch does. Back then draws again any screen a reopened popup
|
||||
// can draw. Back only unhides Welcome, so its boxes are set here too.
|
||||
$("settings-use-blockscout").addEventListener("change", async () => {
|
||||
const on = $("settings-use-blockscout").checked;
|
||||
await saveState(() => setUseBlockscout(on));
|
||||
|
||||
Reference in new issue
Block a user