Skip to content

Commit 8cdd7f5

Browse files
committed
[css-paint-api] Small code fixes to examples.
1 parent 562f985 commit 8cdd7f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

css-paint-api/arc/arc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ registerPaint('arc', class {
3636
}
3737

3838
convertAngle(angle) {
39-
const value = angle.value || convertFloat(angle.cssText);
39+
const value = angle.value || parseFloat(angle.cssText);
4040
const unit = angle.unit || angle.cssText.match(this.regex)[0];
4141

4242
switch (unit) {

css-paint-api/circle/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
initialValue: 'black',
2626
inherit: false
2727
});
28-
CSS.paintWorklet.import('circle.js');
28+
(CSS.paintWorklet || paintWorklet).import('circle.js');
2929
</script>
3030

0 commit comments

Comments
 (0)