Skip to content

Commit 699104d

Browse files
author
Sebi Nemeth
committed
restrict log
1 parent a4f66c5 commit 699104d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class LiveTranslatorManager {
275275
}
276276
}
277277
catch (error) {
278-
console.error(error, node, node.tagName);
278+
console.warn('Could not get bounding box for', node);
279279
}
280280
const container = document.createElement('span');
281281
container.classList.add('live-translator-badge-container');

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,7 @@ class LiveTranslatorManager {
319319
position.left = clientRect.left + window.screenX
320320
}
321321
} catch (error) {
322-
console.error(error, node, node.tagName);
323-
322+
console.warn('Could not get bounding box for', node);
324323
}
325324
const container = document.createElement('span')
326325
container.classList.add('live-translator-badge-container')

0 commit comments

Comments
 (0)