helpdesk-embed object
npm install @planningcenter/helpdesk-embedApp-side iframe loader for Planning Center Helpdesk.
Add this Sprocketsrequire to application.js in any Planning Center app.
``js`
//= require @planningcenter/helpdesk-embed
helpdesk-embed is an IIFE that adds Helpdesk to the global object.
All flagship Planning Center apps are setup to consume node_modules in for assets.config/initializers/assets.rb
If your app isn't (or you're creating a new app) add this to :
`rb``
Rails.application.config.assets.paths << Rails.root.join('node_modules')
This code was written a long time ago, before JavaScript had modules.
It'd be great if this code were modularized, making all dependencies (internal and external) more explicit.