# leadin/11.1.13/scripts/utils/appUtils.ts

HubSpot All-In-One Marketing – Forms, Popups, Live Chat, version 11.1.13. 15 lines.

- Page: https://pluginprobe.com/plugins/leadin/11.1.13/code/scripts/utils/appUtils.ts
- Raw: https://pluginprobe.com/plugins/leadin/11.1.13/raw/scripts/utils/appUtils.ts
- Modified: 2024-05-23T13:10:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/leadin/11.1.13/code/scripts/utils/appUtils.ts#L10-L20`.

```typescript
import $ from 'jquery';
import Raven, { configureRaven } from '../lib/Raven';

export function initApp(initFn: Function) {
  configureRaven();
  Raven.context(initFn);
}

export function initAppOnReady(initFn: (...args: any[]) => void) {
  function main() {
    $(initFn);
  }
  initApp(main);
}

```
