first
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/png" href="%BASE_URL%favicon.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="preload" as="image" href="%BASE_URL%map.webp" type="image/webp" />
|
||||
<title></title>
|
||||
<script>
|
||||
// 必须在所有 JS 模块加载前运行,否则 loglevel 会缓存原始 console 引用
|
||||
// 屏蔽 OpenIM SDK 内部 "SDK =>" 调试日志
|
||||
;(function () {
|
||||
var _filter = function (a) { return typeof a === 'string' && a.startsWith('SDK =>') }
|
||||
;['log', 'info', 'debug', 'trace'].forEach(function (m) {
|
||||
var orig = console[m].bind(console)
|
||||
console[m] = function () { if (!_filter(arguments[0])) orig.apply(console, arguments) }
|
||||
})
|
||||
})()
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user