From 1e3549b016c2a23b160fbd5ad242d8da04bbe5f1 Mon Sep 17 00:00:00 2001 From: skeddles Date: Tue, 6 Jul 2021 12:19:37 -0400 Subject: [PATCH] fixed history state changing to /app --- js/_newPixel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/_newPixel.js b/js/_newPixel.js index e1ea9cc..d8f7e0e 100644 --- a/js/_newPixel.js +++ b/js/_newPixel.js @@ -106,7 +106,7 @@ function newPixel (width, height, editorMode, fileContent = null) { //if this palette isnt the one specified in the url, then reset the url if (!palettes[selectedPalette].specified) - history.pushState(null, null, '/pixel-editor/app'); + history.pushState(null, null, '/pixel-editor'); //fill the palette with specified colours createColorPalette(palettes[selectedPalette].colors,true); @@ -114,7 +114,7 @@ function newPixel (width, height, editorMode, fileContent = null) { // Otherwise, I just generate 2 semirandom colours else if (fileContent == null) { //this wasn't a specified palette, so reset the url - history.pushState(null, null, '/pixel-editor/app'); + history.pushState(null, null, '/pixel-editor'); //generate default colors var fg = hslToRgb(Math.floor(Math.random()*255), 230,70);