Add Settings to web app (#125)

* Add support for opening settings dialog in the webapp

* Add tests for settings dialog

* Hide stand-alone app specific settings in web app

* Remove debug log
This commit is contained in:
Jonatan Heyman
2024-01-04 14:27:04 +01:00
committed by GitHub
parent 0ba5820cf4
commit acb7ddf189
16 changed files with 137 additions and 30 deletions

View File

@ -42,4 +42,8 @@ export class HeynotePage {
const block = blocks[blockIndex]
return content.slice(block.content.from, block.content.to)
}
async getStoredSettings() {
return await this.page.evaluate(() => JSON.parse(window.localStorage.getItem("settings")))
}
}