Spaces:
Running
Running
Update script.js
Browse files
script.js
CHANGED
@@ -216,7 +216,7 @@ window.onload = function(e) {
|
|
216 |
//Setting up canvas
|
217 |
canvas = document.getElementById("hw-canvas");
|
218 |
ctx = canvas.getContext("2d");
|
219 |
-
ctx.canvas.width = window.innerWidth;
|
220 |
-
ctx.canvas.height = window.innerHeight;
|
221 |
|
222 |
}
|
|
|
216 |
//Setting up canvas
|
217 |
canvas = document.getElementById("hw-canvas");
|
218 |
ctx = canvas.getContext("2d");
|
219 |
+
ctx.canvas.width = window.innerWidth- 50;
|
220 |
+
ctx.canvas.height = window.innerHeight - 50;
|
221 |
|
222 |
}
|