nodebb-plugin-pdf-secure 1.2.28 → 1.2.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-pdf-secure",
3
- "version": "1.2.28",
3
+ "version": "1.2.29",
4
4
  "description": "Secure PDF viewer plugin for NodeBB - prevents downloading, enables canvas-only rendering with Premium group support",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -175,7 +175,7 @@
175
175
  const viewerEl = document.getElementById('viewer');
176
176
  if (!viewerEl) return;
177
177
 
178
- const uid = (window.PDF_SECURE_CONFIG && window.PDF_SECURE_CONFIG.uid) || 0;
178
+ const uid = (_cfg && _cfg.uid) || 0;
179
179
  const checkoutUrl = 'https://forum.ieu.app/pay/checkout?uid=' + uid;
180
180
 
181
181
  const overlay = document.createElement('div');
@@ -2307,7 +2307,7 @@
2307
2307
  }
2308
2308
  // Don't duplicate overlay
2309
2309
  if (pageEl.querySelector('.page-lock-overlay')) return;
2310
- var uid = (window.PDF_SECURE_CONFIG && window.PDF_SECURE_CONFIG.uid) || 0;
2310
+ var uid = (_cfg && _cfg.uid) || 0;
2311
2311
  var checkoutUrl = 'https://forum.ieu.app/pay/checkout?uid=' + uid;
2312
2312
  var overlay = document.createElement('div');
2313
2313
  overlay.className = 'page-lock-overlay';