Ghost/ghost/admin/app/routes/explore/connect.js
Aileen Booker c4188c1a9e
Added Ghost Explore in Ghost as iframe app behind feature flag (#15495)
no issue

- Added Ghost Explore screen behind alpha flag
- Moved existing /explore route to /explore/connect which we'll redirect to for outside requests
- Added iframe communication with Ghost Explore App
2022-10-07 14:32:54 +01:00

11 lines
284 B
JavaScript

import ExploreRoute from './index';
export default class ExploreConnectRoute extends ExploreRoute {
controllerName = 'explore';
// Ensure to always close the iframe, as we're now on an Ember route
beforeModel() {
this.explore.toggleExploreWindow(false);
}
}