@planningcenter/helpdesk-embed
v1.1.0
Published
helpdesk-embed object
Downloads
173
Readme
@planningcenter/helpdesk-embed
App-side iframe loader for Planning Center Helpdesk.
Rails Installation
Add this Sprocketsrequire to application.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')
Areas for improvement
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.