libreoffice-online/browser/js
Miklos Vajna ad74670af5 cool#8734 browser: allow enabling dark mode from a URL parameter
One way for integrations to ask for dark mode is to set URL parameters.
This works for e.g. the language, but didn't work for dark mode.

There was already a parameter for this, but it was limited to Android.

Fix the problem by exposing the parameter for non-Android as well, and
also extend global.js to default to this, but keep the local storage as
an option to customize the setting if the user wants to.

Tested with 'make run', <input type=hidden> way may need more work on
top of this.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I78c4115a8e337ef2b1ea9e498db2572965762bef
2024-04-11 08:33:21 +01:00
..
Autolinker.js
global.js cool#8734 browser: allow enabling dark mode from a URL parameter 2024-04-11 08:33:21 +01:00
l10n.js
ResizeObserverPolyfill.js Revert "Remove unused file." 2024-02-26 10:49:31 -05:00
sanitize-url.js
select2.js