# extendify/0.11.1/src/Assist/app.js

Extendify, version 0.11.1. 29 lines.

- Page: https://pluginprobe.com/plugins/extendify/0.11.1/code/src/Assist/app.js
- Raw: https://pluginprobe.com/plugins/extendify/0.11.1/raw/src/Assist/app.js
- Modified: 2022-10-07T04:54:12+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/extendify/0.11.1/code/src/Assist/app.js#L10-L20`.

```javascript
import { render } from '@wordpress/element'
import { AssistLandingPage } from '@assist/AssistLandingPage'
import { AdminNotice } from '@assist/components/AdminNotice'

// Disable Assist while Launch is running
const q = new URLSearchParams(window.location.search)
const launchActive = ['onboarding'].includes(q.get('extendify'))
const launchCompleted = window.extAssistData.launchCompleted
const devbuild = window.extAssistData.devbuild

const assistPage = document.getElementById('extendify-assist-landing-page')
const dashboard = document.getElementById('dashboard-widgets-wrap')

// Assist landing page
if (!launchActive && assistPage) {
    render(<AssistLandingPage />, assistPage)
}

// Launch admin notice - show on devmode too
if (dashboard && (!launchCompleted || devbuild)) {
    const launchAdminNotice = Object.assign(document.createElement('div'), {
        className: 'extendify-assist',
    })
    // Hide the welcome notice if we are going to display ours
    document.getElementById('welcome-panel')?.remove()
    dashboard.before(launchAdminNotice)
    render(<AdminNotice />, launchAdminNotice)
}

```
