Class

IndexJsApi

IndexJsApi()

App Root JavaScript Hooks. Instance name: indexJsApi

It can be used to register functions that require initialization in index.js.

Constructor

# new IndexJsApi()

Example
externalCodeSetup.indexJsApi.METHOD_NAME

Methods

# addIndexJsFunction(fn)

Registers a function to be called after a bug tracking tool initializes but before the main component is imported. It can be useful for registering third-party components that require initialization in index.js.

Parameters:
Name Type Description
fn function
Example
externalCodeSetup.indexJsApi.addIndexJsFunction(() => {
  console.log("function from external set up");
})