penguinmod-editor / src /addons /settings-store-singleton.js
soiz1's picture
Upload 1525 files
f2bee8a verified
raw
history blame contribute delete
327 Bytes
import SettingsStore from './settings-store';
const settingStore = new SettingsStore();
const urlParameters = new URLSearchParams(location.search);
if (urlParameters.has('addons')) {
settingStore.parseUrlParameter(urlParameters.get('addons'));
} else {
settingStore.readLocalStorage();
}
export default settingStore;