Describe the bug
Every time, we switch night mode, native app automatically appends its own style tag:
To Reproduce
Steps to reproduce the behavior:
Open Sandbox. Enable developer mode and watch for head tag changes
Go to Telegram settings and switch Night Mode several times
Now head tag contains a lot of almost the same style tags
Expected behavior
It seems that native app appends style tag with styles according to current theme, but it looks like the correct way is not to always append new style tag, but replace last one added. Otherwise, elements become flooded with same CSS rules.
Describe the bug Every time, we switch night mode, native app automatically appends its own style tag:
To Reproduce Steps to reproduce the behavior:
head
tag changeshead
tag contains a lot of almost the samestyle
tagsExpected behavior It seems that native app appends style tag with styles according to current theme, but it looks like the correct way is not to always append new style tag, but replace last one added. Otherwise, elements become flooded with same CSS rules.