https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43517

--- Comment #3 from Paul Derscheid <[email protected]> ---
Created attachment 205672
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=205672&action=edit
Bug 43517: (follow-up) Move String.prototype.format into str-format.js

- Replace the component-test copy of String.prototype.format with the
  real definition: move it verbatim out of staff-global.js into
  js/str-format.js, loaded from js_includes.inc directly before
  staff-global.js.
- Add an @js rspack alias for koha-tmpl/intranet-tmpl/prog/js, next to
  @fetch and @koha-vue, and import @js/str-format.js from
  t/cypress/support/component.ts.

Test plan:
1. Run: yarn cypress run --component
2. Verify all specs pass.
3. Load any staff page and confirm js/str-format.js is served before
   staff-global.js and "%s".format("<string>") still works in the console.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to