Skip to content

Commit a270ef7

Browse files
committed
fix: use var
1 parent 9fb49c5 commit a270ef7

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![GitHub Action](https://github.com/weizhenye/Danmaku/workflows/CI/badge.svg)](https://github.com/weizhenye/Danmaku/actions)
44
[![Coverage](https://badgen.net/codecov/c/github/weizhenye/Danmaku?icon=codecov)](https://codecov.io/gh/weizhenye/Danmaku)
5-
[![Dependencies](https://badgen.net/david/dep/weizhenye/Danmaku?icon=https://api.iconify.design/si-glyph:connect-2.svg?color=white)](https://david-dm.org/weizhenye/Danmaku)
65
[![NPM version](https://badgen.net/npm/v/danmaku?icon=npm)](https://www.npmjs.com/package/danmaku)
76
[![License](https://badgen.net/npm/license/danmaku?icon=https://api.iconify.design/octicon:law.svg?color=white)](https://github.com/weizhenye/Danmaku/blob/master/LICENSE)
87
[![File size](https://badgen.net/bundlephobia/minzip/danmaku?icon=https://api.iconify.design/ant-design:file-zip-outline.svg?color=white)](https://bundlephobia.com/result?p=danmaku)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"homepage": "https://danmaku.js.org/",
4444
"devDependencies": {
4545
"@rollup/plugin-replace": "^2.3.3",
46-
"chai": "^4.2.0",
46+
"chai": "4.2.0",
4747
"es6-promise": "^4.2.8",
4848
"eslint": "^7.6.0",
4949
"karma": "^5.1.1",

src/engine/canvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const dpr = typeof window !== 'undefined' && window.devicePixelRatio || 1;
1+
var dpr = typeof window !== 'undefined' && window.devicePixelRatio || 1;
22

33
export var canvasHeightCache = Object.create(null);
44

0 commit comments

Comments
 (0)