mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-02-08 07:30:45 +03:00
12 lines
360 B
JavaScript
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,
|
|
};
|
|
}
|