Skip to content

Commit

Permalink
feat: Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed Mar 17, 2024
1 parent 3e36e0c commit 1f21b35
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions packages/examples/src/js/workers/decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ function decode(bytes: Uint8Array, charset: Charset): string {
// 无 ECI 时默认编码为 ISO-8859-1,此时才进行编码检查。
if (charset === Charset.ISO_8859_1) {
label = chardet.detect(bytes);

console.log(label);
}

// 编码检查失败,使用默认编码。
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/static/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"/><title>二维码</title><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="/qrcode/packages/examples/static/public/favicon.ico"/><script defer="defer" src="/qrcode/packages/examples/static/public/js/323447b9c8826aa4.js"></script><script defer="defer" src="/qrcode/packages/examples/static/public/js/96d83e65064a7851.js"></script><script defer="defer" src="/qrcode/packages/examples/static/public/js/728041059d32cc7d.js"></script><link href="/qrcode/packages/examples/static/public/css/be1a0c0d225bc424.css" rel="stylesheet"/></head><body><noscript>您已禁用 JavaScript,网站无法正常工作,请启用 JavaScript!</noscript><div id="app"></div></body></html>
<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"/><title>二维码</title><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="/qrcode/packages/examples/static/public/favicon.ico"/><script defer="defer" src="/qrcode/packages/examples/static/public/js/7341aaa9fd0f97f7.js"></script><script defer="defer" src="/qrcode/packages/examples/static/public/js/96d83e65064a7851.js"></script><script defer="defer" src="/qrcode/packages/examples/static/public/js/728041059d32cc7d.js"></script><link href="/qrcode/packages/examples/static/public/css/be1a0c0d225bc424.css" rel="stylesheet"/></head><body><noscript>您已禁用 JavaScript,网站无法正常工作,请启用 JavaScript!</noscript><div id="app"></div></body></html>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1f21b35

Please sign in to comment.