Commit Graph

21 Commits (1bb8f2815dd3cf7ab4a0080a5355ca4c0287319f)

Author SHA1 Message Date
meow d3ab4a5145 JS. Trailing spaces removed
meow b729597728 comment changed
extra spaces removed
meow b72b917af2 handled invalid values in storage
partial rewrite notifications.js
innerText to textContent
fixed bug with clamping
meow fd890f9c0a fix helpers storage
meow 7dd699370f js code rewrite. Created _helpers.js with XHR and storage wrapper
meow 3431a1b1de `console.warn` and `info` instead of `log`
meow c4cc50ca39 replace innerHTML to safer textContent where possible
meow 9b09d369d9 add variable declarations
meow 38ef0b10e7 eqeqeq
meow c72d3c4a0e semicolons
meow eb7e48b059 use strict
leonklingele 70cbe91776
Migrate to a good Content Security Policy ()
So attacks such as XSS (see [0]) will no longer be of an issue.

[0]: https://github.com/omarroth/invidious/issues/1022
Omar Roth d034fecc89
Remove default arguments from function definitions
Omar Roth bbb40aef51
Fix event listener for notifications.js
Omar Roth 485a3e29e7
Optimize get_subscriptions AJAX
Omar Roth 9dea251862
Fix typo in notifications.js
Omar Roth 17edfd6573
Shorten timeout for AJAX
Omar Roth 552f616305
Fix retry on timeout for AJAX requests
Omar Roth 8c944815bc
Minor refactor
Omar Roth e23bab0103
Only add notification event listener after onload
Omar Roth 0338fd42e1
Add support for Web notifications