optional but always on transfer

This commit is contained in:
legop3
2026-07-08 12:53:39 -04:00
parent 5d60544904
commit a6f6ccf079
12 changed files with 253 additions and 178 deletions
@@ -25,9 +25,9 @@ export default function useIncomingInterInstanceTransfer() {
}
try {
/*
The source page already asked before adding settingsTransfer. A present
transfer param is therefore an explicit instruction to replace the local
settings cookie without asking again on the destination server.
The source page only adds settingsTransfer when its saved Page setting
allows it. A present transfer param is therefore an explicit instruction
to replace the local settings cookie without asking again here.
*/
const nextSettings = base64UrlDecodeJson(transfer);
settings.saveAll(nextSettings && typeof nextSettings === 'object' ? nextSettings : {});