penguinmod-editor-2 / src /addons /settings-store-singleton.js
soiz1's picture
Upload 2891 files
6bcb42f 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;