Closed connor-odoherty closed 4 years ago
You're defining app behavior. That type of behavior should belong in your app, not in a library/plugin. Simply prompt your confirmation prior to rendering the PDF Viewer. This adds zero overhead to this plugin and keeps all the business logic in your app's controllers.
ie. Your app requires users to read and accept a PDF contract