Comments (3)
This can be accomplished via window.postMessage
and storing a cookie.
Actually, I might see if I could write some code to do this (providing a light mode already exists for chat) – a lack of a development environment on my end will restrict my ability to test that code, though.
from saidit.
The TheLounge theme setting is stored in local storage in key 'settings'. The day theme/default theme is called 'example'. When I change this local storage data and reload, I see the new theme, yay.
But what should saidit do, check this local storage data on every page load? And can js even access local storage for a different port number (same domain)? What about a subdomain? Another approach is to hack TheLounge to accept a 'theme' url parameter that saidit would add to the chat iframe url.
It would be cool if TheLounge could change themes with a message from the outside too, for smashing on the day/night toggle.
from saidit.
Resolved by c5ad6f4
and c5ad6f4
from saidit.
Related Issues (20)
- Login and registration security refactor HOT 1
- Search by author missing 'next' button HOT 1
- Impossible to navigate sign-up capchas HOT 3
- rumble.com thumbnails broke HOT 1
- Getting subreddit name from the cassandra db? HOT 2
- Globally banned users can still message moderators HOT 2
- Push notifications not working in Android 10 HOT 1
- Fix subreddit traffic stats
- Automoderator scheduling
- Automoderator can't set flair
- Rebuilding after making a change? HOT 1
- Potentially show deleted posts in more places HOT 1
- Error building rabbitmq HOT 4
- RTL Support HOT 1
- Some Docker suggestions HOT 1
- "Keyspace 'reddit' does not exist" when installing saidit on an ubuntu 14.04 server VM HOT 2
- A new global banning system is not necessary! HOT 3
- Search only returns a few results
- saidit.net either dropped or SSL certificate expired
- Don't let mods approve content removed by admins HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from saidit.