Skip to content

Commit 2a8c742

Browse files
fix: Coverage not clearing on file navigation (#112)
Fixes a bug where on navigating between files, coverage highlights were not clearing and updating. Closes #108
1 parent 30cd05c commit 2a8c742

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"watch": "webpack --config webpack/webpack.dev.js --watch",
88
"build": "webpack --config webpack/webpack.prod.js",
9+
"build.firefox": "npm run build && mv dist/manifest.firefox.json dist/manifest.json",
910
"lint": "prettier --write \"src/**/*.{ts,tsx}\""
1011
},
1112
"author": "",

src/content/github/file/main.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {
3333
} from "../common/fetchers";
3434
import { print } from "src/utils";
3535
import Sentry from "../../common/sentry";
36-
import { isFileUrl } from "../common/utils";
3736

3837
const globals: {
3938
coverageReport?: FileCoverageReport;
@@ -375,6 +374,7 @@ function clearElements() {
375374

376375
function clearAnimationAndAnnotations() {
377376
clearAnimation(lineSelector, annotateLine);
377+
clearAnimation(noVirtLineSelector, annotateLine);
378378
clearAnnotations((line: HTMLElement) => {
379379
line.style.backgroundColor = "inherit";
380380
});

0 commit comments

Comments
 (0)