# Javascript overwrite or injection

You can overwrite or inject Javascript code for each module on demand

There are two keys for each module:

  • overwrite: {boolean} default false
  • callback: {function} default noop

Note:

  • if overwrite == true, you can use callback to overwrite all BundleB2B related codes of the current module.
  • "callback" will load disregards the value of "overwrite" and runs after BundleB2B related codes.
window.b3themeConfig.useJavaScript = {
  tpa: {
    overwrite: false,
    callback() {}
  },
  login: {},
  dashboard: {},
  quotes: {},
  b3storage: {},
  quickorderpad: {},
  usermanagement: {},
  buyagain: {},
  shoppinglists: {},
  shoppinglist: {},
  createquote: {},
  addressbook: {},
  quotedetail: {},
  orders: {},
  orderdetail: {},
  accountsetting: {},
}