We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9f42bb commit fe6090cCopy full SHA for fe6090c
src/base/vanilla/patch.message.js
@@ -14,15 +14,14 @@ onPage('', function patches() {
14
const text = $el.html.get(el);
15
const version = patch.dataset.i18nArgs;
16
el.remove();
17
- const key = `underscript.season.dismissed.${version}`;
18
- const message = $.i18n('home-patch-message', version);
19
- fn.cleanData('underscript.season.dismissed.', key);
20
- if (settings.value(key) === message) return;
+ const prefix = 'underscript.season.dismissed.';
+ const key = `${prefix}${version}`;
+ fn.cleanData(prefix, key);
+ if (settings.value(key)) return;
21
fn.dismissable({
22
key,
23
- text,
+ text, // This only works because it gets translated by the loader
24
title: `Undercards Update`,
25
- value: message,
26
});
27
28
0 commit comments