Skip to content

Commit 1f26df0

Browse files
committed
Support for chrome and edge
* Add checkbox (vlad.png) locally * Show support for Chrome and Edge - they weren't working before and mysteriously work now
1 parent 096a0d8 commit 1f26df0

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

components/StyledCheckbox/styledCheckbox.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ input.taskCompletionCheckbox + .taskCompletionCheckbox {
1515
vertical-align: middle;
1616
cursor: pointer;
1717
margin-right: 10px;
18-
background-image: url(http://csscheckbox.com/checkboxes/vlad.png);
18+
background-image: url(/images/checkbox.png);
1919
}
2020

2121
input.taskCompletionCheckbox {

libs/browser.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export default class Browser {
4444
}
4545

4646
browserSupported() {
47-
if (this.browser == "Firefox") return true;
47+
console.log(this.browser);
48+
if (["Firefox", "Edge", "Edge or Chrome"].includes(this.browser)) return true;
4849

4950
return false;
5051
}

public/images/checkbox.png

3.34 KB
Loading

0 commit comments

Comments
 (0)