Closed hicallmeal closed 4 months ago
Could you fix the CI issue and manually test the changes? npm run chrome
-> chrome://extensions
should allow you to do so.
I've updated the patch according to commit notes; essentially in order to return an integer, a .number
modifier is required.
https://v2.vuejs.org/v2/guide/forms.html#number
Have tested and compiled successfully.
The parsed
<option>
returns the OTP.type as a string, instead of the required integer type. Later in execution, the code can't handle the string in comparisons, etc.As a result, selecting a different type causes the resulting entry to be handled as a standard TOTP type. Giving it the appearance and behaviour as such - it also affects backups (..
&counter=undefined
) if done so in the same session. Any type of operation apart from the default type (as that's assigned an integer by default) with the option is affected.In saying that, once reloaded, some other part of the code corrects the entry and storage.
This just parseInts the string so that it's correctly handled. You might have some better way of doing this, perhaps earlier on, etc.