13 lines
405 B
JavaScript
13 lines
405 B
JavaScript
AppSideService(
|
|
{
|
|
onInit(){
|
|
settings.settingsStorage.addListener('change', async ({ key, newValue, oldValue }) => {
|
|
console.log(key)
|
|
console.log(newValue)
|
|
const totps = settings.settingsStorage.getItem('TOTPs')
|
|
const dataBuffer = Buffer.from(totps)
|
|
messaging.peerSocket.send(dataBuffer.buffer)
|
|
})
|
|
}
|
|
}
|
|
) |