Skip to content

Online Settings Persistence #253

Answered by victrme
98h398hrpohpoai asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @98h398hrpohpoai !

The online version is using localStorage and not cookies, which is fairly simple to get / update. However because of that, the settings are only accessible from the page. I can look into the File System API, but because of security reasons it is kind of hard to work with. So no promises !

In the meantime, you could add some sort of function in your server - maybe in PHP - that can store a text file, then add this script on top of main.js in index.html to store the settings every time you save:

<!-- index.html -->

<script>
  // Apply settings before Bonjourr does
  fetch("http://localhost:8888/somefunction/get").then(data => {
    for (const [key, val] of Object.e…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@98h398hrpohpoai
Comment options

@victrme
Comment options

@98h398hrpohpoai
Comment options

Answer selected by victrme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants