Skip to content

Commit 3d09b91

Browse files
authored
feat(Console): remove console log in scripts (#6802)
* refactor: 移除调试信息 * refactor: log 更改为 error 平台不支持 * refactor: 移除调试信息 * refactor: 移除调试信息
1 parent 8422a3f commit 3d09b91

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

src/BootstrapBlazor.Server/Components/Components/FooterCounter.razor.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export function updateFooterCounter(id, totalSeconds) {
3333
const counter = Data.get(id);
3434
if (counter) {
3535
counter.totalSeconds = totalSeconds;
36-
console.log(`FooterCounter updated: ${id}, totalSeconds: ${totalSeconds}`);
3736
}
3837
}
3938

src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
window.BootstrapBlazor.MindMap = {
66
callbacks: {
77
clickCustom: function (args) {
8-
console.log(this, args);
8+
99
}
1010
}
1111
}

src/BootstrapBlazor/Components/Camera/Camera.razor.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ const play = (camera, option = {}) => {
4040
...option
4141
}
4242
navigator.mediaDevices.getUserMedia(constrains).then(stream => {
43-
const supportedConstraints = navigator.mediaDevices.getSupportedConstraints();
44-
console.log(supportedConstraints);
45-
4643
camera.video = { deviceId: option.video.deviceId };
4744
camera.video.element = camera.el.querySelector('video')
4845
camera.video.element.srcObject = stream

src/BootstrapBlazor/wwwroot/modules/media.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
export async function enumerateDevices() {
44
let ret = null;
55
if (!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia || !navigator.mediaDevices.enumerateDevices) {
6-
console.log("enumerateDevices() not supported.");
6+
console.error("enumerateDevices() not supported.");
77
}
88
else {
99
try {

0 commit comments

Comments
 (0)