Fix error in JavaScript
When you closed the settings popup when enabling the extension without clicking Save, the settings were undefined.
When you closed the settings popup when enabling the extension without clicking Save, the settings were undefined.