Skip to content

Commit 479e320

Browse files
committed
tmp
1 parent 67b0399 commit 479e320

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/main.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,9 +1636,11 @@ class JavaScript extends Adapter {
16361636

16371637
const doc = await this.getObjectViewAsync('script', 'javascript', {});
16381638
if (doc?.rows?.length) {
1639+
this.log.info(`_FB_: Found ${doc.rows.length} scripts`);
1640+
let docRows = doc.rows;
16391641
// assemble global script
1640-
for (let g = 0; g < doc.rows.length; g++) {
1641-
const obj = doc.rows[g].value;
1642+
for (let g = 0; g < docRows.length; g++) {
1643+
const obj = docRows[g].value;
16421644
if (checkIsGlobal(obj)) {
16431645
if (obj && obj.common) {
16441646
const engineType = (obj.common.engineType || '').toLowerCase();
@@ -1732,7 +1734,7 @@ class JavaScript extends Adapter {
17321734
}
17331735
} else {
17341736
// javascript
1735-
this.log.info(`${obj._id}: concatenating global script...`);
1737+
this.log.info(`_FB_: ${obj._id}: concatenating global script...`);
17361738
const sourceCode = obj.common.source;
17371739
this.globalScript += `${sourceCode}\n`;
17381740

0 commit comments

Comments
 (0)