Skip to content

Commit 8b844f0

Browse files
committed
🌀
1 parent 767168f commit 8b844f0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/show-js-error.esm.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ function getScreenSize() {
33
return [screen.width, screen.height, screen.colorDepth].join('×');
44
}
55
function getScreenOrientation() {
6-
return typeof screen.orientation === 'string' ? screen.orientation : screen.orientation.type;
6+
var _a;
7+
return typeof screen.orientation === 'string' ? screen.orientation : (_a = screen.orientation) === null || _a === void 0 ? void 0 : _a.type;
78
}
89
function copyTextToClipboard(text) {
910
var textarea = document.createElement('textarea');

dist/show-js-error.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
return [screen.width, screen.height, screen.colorDepth].join('×');
77
}
88
function getScreenOrientation() {
9-
return typeof screen.orientation === 'string' ? screen.orientation : screen.orientation.type;
9+
var _a;
10+
return typeof screen.orientation === 'string' ? screen.orientation : (_a = screen.orientation) === null || _a === void 0 ? void 0 : _a.type;
1011
}
1112
function copyTextToClipboard(text) {
1213
var textarea = document.createElement('textarea');

0 commit comments

Comments
 (0)