File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
{% if S_PWA_OPTIONS %}
2
2
< script >
3
3
const input = document . getElementById ( 'pwa_short_name' ) ;
4
- const maxLength = 12 ;
4
+ const maxLength = input . maxLength || 12 ;
5
+
6
+ input . maxLength = maxLength * 2 ;
5
7
6
8
input . addEventListener ( 'input' , ( ) => {
7
9
// Use Array.from to count characters correctly
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ public function pwa_short_sitename($value, $key)
215
215
{
216
216
$ placeholder = $ this ->trim_shortname ($ this ->config ['sitename ' ]);
217
217
218
- return '<input id=" ' . $ key . '" type="text" size="40" maxlength="24 " name="config[ ' . $ key . ']" value=" ' . $ value . '" placeholder=" ' . $ placeholder . '"> ' ;
218
+ return '<input id=" ' . $ key . '" type="text" size="40" maxlength="12 " name="config[ ' . $ key . ']" value=" ' . $ value . '" placeholder=" ' . $ placeholder . '"> ' ;
219
219
}
220
220
221
221
/**
You can’t perform that action at this time.
0 commit comments