diff --git a/src/canvas.js b/src/canvas.js
index 6934d170048b70b0a31973ab771c8c4e7065a630..d8f875663aa0376d7ce03fa280fcc55886645959 100644
--- a/src/canvas.js
+++ b/src/canvas.js
@@ -17,7 +17,7 @@ const lineFn = line()
 const pathGroupElems = new Map()
 
 let stroke_colour = "blue"
-export var stroke_radius = 1
+export let stroke_radius = 1
 export const MIN_STROKE_RADIUS = 0.1
 export const MAX_STROKE_RADIUS = 3.9
 
@@ -92,7 +92,7 @@ const createPathElem = (d, width) => {
 export const renderPath = (id, points) => {
   points = points.filter(([x]) => x != null)
   let colour = ""
-  var radius = 0
+  let radius = 0
 
   // Split up points into completely non-erased segments.
   let segments = [[]]