mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
per-browser source id so we support having notecase opened in multiple tabs/windows
This commit is contained in:
@@ -16,9 +16,9 @@ async function getOption(optName) {
|
||||
return row['opt_value'];
|
||||
}
|
||||
|
||||
async function setOption(optName, optValue) {
|
||||
async function setOption(optName, optValue, sourceId) {
|
||||
if (SYNCED_OPTIONS.includes(optName)) {
|
||||
await sync_table.addOptionsSync(optName);
|
||||
await sync_table.addOptionsSync(optName, sourceId);
|
||||
}
|
||||
|
||||
await sql.replace("options", {
|
||||
|
||||
Reference in New Issue
Block a user