Skip to content

Commit 5415582

Browse files
committed
fix(logger): don't trim text if maxWidth is NaN or <10
1 parent 35f9fd2 commit 5415582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/common/mobile/device-log-provider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class DeviceLogProvider extends DeviceLogProviderBase {
155155

156156
// console.log(prefix, fullLine);
157157
// return;
158-
if (fullLine.length < maxWidth) {
158+
if (!maxWidth || maxWidth < 10 || fullLine.length < maxWidth) {
159159
console.log(prefix, fullLine);
160160
} else {
161161
for (let i = 0; i < fullLine.length; i += maxWidth) {

0 commit comments

Comments
 (0)