Use const instead of var

This commit is contained in:
Kristoffer Lundén 2017-01-12 15:39:31 +01:00
parent 5aa551a696
commit 675fc9bb6f

View File

@ -1023,7 +1023,7 @@ function add(gui, object, property, params) {
}
function getLocalStorageHash(gui, key) {
var namespace = localStorage.getItem('dat.gui.namespace') || document.location.href;
const namespace = localStorage.getItem('dat.gui.namespace') || document.location.href;
return 'dat.gui.' + namespace + '.' + key;
}