We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aeb409 commit 1ca6ba3Copy full SHA for 1ca6ba3
src-node/utils.js
@@ -354,7 +354,7 @@ async function isLicensedDevice() {
354
const targetPath = getLicensePath();
355
try {
356
const data = await readFileUtf8(targetPath);
357
- JSON.parse(data);
+ JSON.parse(data.trim());
358
return true; // currently, the existence of the file itself is flag. in future, we may choose to add more.
359
} catch {
360
// file missing, unreadable, or invalid JSON
0 commit comments