draply-dev 1.5.7 → 1.5.8
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/bin/cli.js +2 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -134,7 +134,7 @@ const MARKER = 'data-ps-done="1"';
|
|
|
134
134
|
function injectOverlay(html) {
|
|
135
135
|
if (html.includes(MARKER)) return html;
|
|
136
136
|
|
|
137
|
-
let isPro =
|
|
137
|
+
let isPro = false;
|
|
138
138
|
const cfg = loadConfig();
|
|
139
139
|
if (cfg.draplyToken) {
|
|
140
140
|
try {
|
|
@@ -143,7 +143,7 @@ function injectOverlay(html) {
|
|
|
143
143
|
const payloadBase64 = payloadBase64Url.replace(/-/g, '+').replace(/_/g, '/');
|
|
144
144
|
const payloadJson = Buffer.from(payloadBase64, 'base64').toString('utf8');
|
|
145
145
|
const payload = JSON.parse(payloadJson);
|
|
146
|
-
|
|
146
|
+
isPro = payload.isPro === true;
|
|
147
147
|
}
|
|
148
148
|
} catch(e) {}
|
|
149
149
|
}
|