redux-devtools/packages/redux-devtools-inspector/demo/src/js/getOptions.js
Nathan Bierema 925ed9e3f7
chore(*): upgrade react-router (#581)
* stash

* stash

* stash

* stash

* fix

* fix

* fix
2020-08-09 20:41:59 -04:00

12 lines
360 B
JavaScript

export default function getOptions(location) {
return {
useExtension: location.search.indexOf('ext') !== -1,
supportImmutable: location.search.indexOf('immutable') !== -1,
theme: do {
const match = location.search.match(/theme=([^&]+)/);
match ? match[1] : 'inspector';
},
dark: location.search.indexOf('dark') !== -1,
};
}