@planningcenter/helpdesk-embed

helpdesk-embed object

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@planningcenter/helpdesk-embed
001.1.05 years ago5 years agoMinified + gzip package size for @planningcenter/helpdesk-embed in KB

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.