Auto-parse checkbox doesn't auto-checked after installed
Closed this issue · 1 comments
kong0107 commented
剛安裝或升級為可勾選「自動轉換」的版本時,該勾選框沒有自動被勾選。
幸好還是會自動轉換,第一次勾選後也可以如所希望的樣子運作。
應該是popup.js
的16行的問題。
kong0107 commented
官方文件提到:
The event page is loaded when it is "needed", and unloaded when it goes idle again. Here are some examples of things that will cause the event page to load:
- The app or extension is first installed or is updated to a new version (in order to register for events).
亦即安裝的當下會執行 Event Pages 。
應該在該處進行localStorage
的初始化。