Update wizard-char-counter.js.es6
Dieser Commit ist enthalten in:
Ursprung
c4e2f2a4a8
Commit
fa3e2d0c55
1 geänderte Dateien mit 19 neuen und 16 gelöschten Zeilen
|
@ -2,7 +2,9 @@ import { registerUnbound } from "discourse-common/lib/helpers";
|
|||
import I18n from "I18n";
|
||||
import Handlebars from "handlebars";
|
||||
|
||||
export default registerUnbound("wizard-char-counter", function (body, maxLength) {
|
||||
export default registerUnbound(
|
||||
"wizard-char-counter",
|
||||
function (body, maxLength) {
|
||||
let bodyLength = body ? body.length : 0;
|
||||
let finalString;
|
||||
|
||||
|
@ -19,4 +21,5 @@ export default registerUnbound("wizard-char-counter", function (body, maxLength)
|
|||
}
|
||||
|
||||
return new Handlebars.SafeString(finalString);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
|
Laden …
In neuem Issue referenzieren