We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd8eb5f commit 3f6ca9dCopy full SHA for 3f6ca9d
1 file changed
app/assets/javascripts/preferences.js
@@ -1,4 +1,4 @@
1
-$(() => {
+document.addEventListener('DOMContentLoaded', () => {
2
$('.js-user-pref').on('change', async (ev) => {
3
const $tgt = $(ev.target);
4
let value;
@@ -10,6 +10,7 @@ $(() => {
10
}
11
const prefName = $tgt.attr('data-pref');
12
const community = $tgt.attr('data-community') === 'true';
13
+
14
await QPixel.setPreference(prefName, value, community);
15
});
16
@@ -25,4 +26,4 @@ $(() => {
25
26
$(e).addClass('is-yellow');
27
28
-});
29
+});
0 commit comments