diff options
Diffstat (limited to 'plugins/jetpack/extensions/blocks/map/view.js')
-rw-r--r-- | plugins/jetpack/extensions/blocks/map/view.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/plugins/jetpack/extensions/blocks/map/view.js b/plugins/jetpack/extensions/blocks/map/view.js deleted file mode 100644 index fc825d67..00000000 --- a/plugins/jetpack/extensions/blocks/map/view.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Internal dependencies - */ -import './style.scss'; -import component from './component.js'; -import { settings } from './settings.js'; -import FrontendManagement from '../../shared/frontend-management.js'; - -typeof window !== 'undefined' && - window.addEventListener( 'load', function() { - const frontendManagement = new FrontendManagement(); - // Add apiKey to attibutes so FrontendManagement knows about it. - // It is dynamically being added on the php side. - // So that it can be updated accross all the map blocks at the same time. - const apiKey = { - type: 'string', - default: '', - }; - frontendManagement.blockIterator( document, [ - { - component: component, - options: { - settings: { - ...settings, - attributes: { - ...settings.attributes, - apiKey, - }, - }, - }, - }, - ] ); - } ); |