diff --git a/src/dat/gui/GUI.js b/src/dat/gui/GUI.js index e037111..79908c0 100644 --- a/src/dat/gui/GUI.js +++ b/src/dat/gui/GUI.js @@ -1023,8 +1023,8 @@ function add(gui, object, property, params) { } function getLocalStorageHash(gui, key) { - // TODO how does this deal with multiple GUI's? - return document.location.href + '.' + key; + var namespace = localStorage.getItem('dat.gui.namespace') || document.location.href; + return 'dat.gui.' + namespace + '.' + key; } function addPresetOption(gui, name, setSelected) {