aboutsummaryrefslogtreecommitdiff
path: root/src/lib/notification-i18n-loader.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-08-01 11:46:57 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-08-01 11:46:57 +0000
commit8e7f3ea074d16a6c89fa7366a1f64302724f661f (patch)
tree40e151399cfb1d9a3afd8576e05173a33a90b03f /src/lib/notification-i18n-loader.js
parentd0a09480b396e05d58957d193490e14a4ed12ccf (diff)
parentbd5d5c9df7e39efa7ecbb1bbfbd036906d1e9535 (diff)
Merge branch 'eslint-update' into 'develop'
update ESLint See merge request pleroma/pleroma-fe!1576
Diffstat (limited to 'src/lib/notification-i18n-loader.js')
-rw-r--r--src/lib/notification-i18n-loader.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/notification-i18n-loader.js b/src/lib/notification-i18n-loader.js
index 71f9156a..d7a4430d 100644
--- a/src/lib/notification-i18n-loader.js
+++ b/src/lib/notification-i18n-loader.js
@@ -3,8 +3,8 @@
// meant to be used to load the partial i18n we need for
// the service worker.
module.exports = function (source) {
- var object = JSON.parse(source)
- var smol = {
+ const object = JSON.parse(source)
+ const smol = {
notifications: object.notifications || {}
}