mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Use const instead of var
This commit is contained in:
parent
5aa551a696
commit
675fc9bb6f
@ -1023,7 +1023,7 @@ function add(gui, object, property, params) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getLocalStorageHash(gui, key) {
|
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;
|
return 'dat.gui.' + namespace + '.' + key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user