Commit graph

11 commits

Author SHA1 Message Date
Nick Schonning
db2c58d47a
Enable ESLint no-useless-escape () 2023-02-13 15:12:14 +01:00
Yamagishi Kazutoshi
216dbaedaf
Disable push notification when not logged in () 2022-10-03 18:15:47 +02:00
Akihiko Odaki
1951ff41b3 Do not override the default push notification settings () 2018-05-19 14:45:58 +02:00
Yamagishi Kazutoshi
0758b00bfd Refactor resizeImage method ()
- Use URL.createObjectURL (replace from FileReader)
- Use HTMLCanvasElement.prototype.toBlob
  (replace from HTMLCanvasElement.prototype.toDataURL)
- Use Promise (replace callback interface)
2018-04-23 09:15:51 +02:00
abcang
897199910f Improve web api protect () 2018-04-17 15:23:46 +02:00
unarist
2c51bc0ca5 Add missing rejection handling for Promises ()
* Add eslint-plugin-promise to detect uncaught rejections

* Move alert generation for errors to actions/alert

* Add missing rejection handling for Promises

* Use catch() instead of onReject on then()

Then it will catches rejection from onFulfilled. This detection can be
disabled by `allowThen` option, though.
2018-04-02 14:51:02 +02:00
abcang
a3c0a20373 Fix initial_state me in push_notification_register () 2018-01-24 14:37:46 +01:00
nightpool
c235711ffe Refactor /api/web APIs to use the centralized axios instance ()
Also adds the ability to decouple the centralized axios logic from the
state dispatcher
2018-01-08 20:01:33 +01:00
Akihiko Odaki
3ba7cde38d Rename key to path in actions and reducers for settings () 2018-01-02 13:50:54 +01:00
MitarashiDango
511c6f9625 bug fix (WebPush does not work) () 2017-12-28 16:20:34 +01:00
Akihiko Odaki
35fdf561be Refactor web_push_subscription ()
* Remove onSave method in mapped properties for column_settings

* Make web_push_subscription.register an action
2017-12-24 04:47:35 +01:00