Update cookies.js

This commit is contained in:
Kyle
2020-07-06 17:42:07 -07:00
parent e0417541b4
commit e251f67ccc

View File

@@ -24,7 +24,7 @@ function getCookie(cookieName) {
function checkCookies() { function checkCookies() {
var colorPaletteCookie = getCookie('colorPalette') var colorPaletteCookie = getCookie('colorPalette')
if (colorPaletteCookie != undefined && colorPaletteCookie != '') { if (colorPaletteCookie != undefined && colorPaletteCookie != '') {
loadScript('data/scripts/palettes/' + colorPaletteCookie + '.js') loadScript('/data/scripts/palettes/' + colorPaletteCookie + '.js')
setTimeout(function() { setTimeout(function() {
document.getElementById('inputColorPalette').value = getCookie('colorPalette') document.getElementById('inputColorPalette').value = getCookie('colorPalette')
}, 1000) }, 1000)