@planningcenter/helpdesk-embed

1.1.0 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @planningcenter/helpdesk-embed

Weekly Downloads

37

Version

1.1.0

License

UNLICENSED

Unpacked Size

6.37 kB

Total Files

5

Last publish

Collaborators