@planningcenter/helpdesk-embed
App-side iframe loader for Planning Center Helpdesk.Rails Installation
Add this Sprocketsrequire toapplication.js
in any Planning Center app.//= require @planningcenter/helpdesk-embed
helpdesk-embed
is an IIFE that adds Helpdesk
to the global object.Rails can't find helpdesk-embed
All flagship Planning Center apps are setup to consume node_modules
in for assets.
If your app isn't (or you're creating a new app) add this to config/initializers/assets.rb
:Rails.application.config.assets.paths << Rails.root.join('node_modules')