StackOverflowTweaksTool is an extension for chromium based browsers and Firefox made for developers. It enables some UI customizations on any StackOverflow question page.
MIT License
24
stars
1
forks
source link
Fix: chrome.storage.get return objects instead of values #9
In the last update (1.5.3) I refactored the codebase by removing some useless utilities and introducing the async/await syntax to improve the readability. But in doing this I forgot that chrome.storage.get returns an object instead of a boolean and this broke the whole extension. This PR fixes the bug.
I don't understand why I didn't notice the problem when I worked on refactoring. I think we could migrate to TypeScript to prevent new errors related to typings and increase stability.
In the last update (1.5.3) I refactored the codebase by removing some useless utilities and introducing the async/await syntax to improve the readability. But in doing this I forgot that chrome.storage.get returns an object instead of a boolean and this broke the whole extension. This PR fixes the bug.
I don't understand why I didn't notice the problem when I worked on refactoring. I think we could migrate to TypeScript to prevent new errors related to typings and increase stability.
Happy Holidays 🎅