File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{% if S_PWA_OPTIONS %}
22< script >
33 const input = document . getElementById ( 'pwa_short_name' ) ;
4- const maxLength = 12 ;
4+ const maxLength = input . maxLength || 12 ;
5+
6+ input . maxLength = maxLength * 2 ;
57
68 input . addEventListener ( 'input' , ( ) => {
79 // 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)
215215 {
216216 $ placeholder = $ this ->trim_shortname ($ this ->config ['sitename ' ]);
217217
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 . '"> ' ;
219219 }
220220
221221 /**
You can’t perform that action at this time.
0 commit comments