Files
puter/doc
Juan Fernando CastroandDaniel Salazar e7641676a2 feat(puter-js): enable() takes a background option, and the desktop's push sync uses it (#4634)
* feat(puter-js): enable() takes a background option that never prompts or opens sign-in

* fix(gui): background push sync calls enable({ background: true }) and shares puter.js's message name

* fix(puter-js): background enable() on a website needs the user's opt-in here and returns false outside web and gui

* fix(gui): push client reports unavailable push apart from permission and reads store names from puter.js

* fix(puter-js): notifications methods type-check when called on puter.notifications

* fix: background enable() stops when push is turned off meanwhile, sync reports unavailable push

* fix(puter-js): background enable() resolves false when pushes are turned off while it runs

* test: background enable() rejections use rejects matchers, not .catch()

* docs(puter-js): enable()'s background option gets its own section and lists its session errors

* fix(push): the desktop calls enable({ background: true }) only on a puter.js that takes it

An older puter.js ignores the option and runs the call as a click, which
replaces a browser removed in Puter and can open a sign-in. puter.js now
says it takes the option, and without that the desktop keeps the internal
background call it used before.

---------

Co-authored-by: Daniel Salazar <daniel.salazar@puter.com>
2026-11-16 09:06:23 -07:00
..
…
…