mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-02 22:51:34 -06:00
allow extensions to be only for one browser.
This commit is contained in:
@@ -551,14 +551,13 @@ export default class RoomsCreate extends Vue {
|
||||
const config = this.browserPolicyConfig
|
||||
if (!config) return []
|
||||
|
||||
return this.$store.state.browserPolicyExtensions.map(({ text, value }: {
|
||||
return this.$store.state.browserPolicyExtensions.map(({ text, value: values }: {
|
||||
text: string;
|
||||
value: Record<BrowserPolicyTypeEnum, BrowserPolicyExtension>;
|
||||
}) => {
|
||||
return {
|
||||
text,
|
||||
value: value[config.type as BrowserPolicyTypeEnum],
|
||||
}
|
||||
const value = values[config.type as BrowserPolicyTypeEnum]
|
||||
if (!value) return undefined
|
||||
return { text, value }
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user