mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-21 03:04:26 -04:00
fix types
This commit is contained in:
parent
5317425bd4
commit
5bf053c8b2
@ -4,7 +4,7 @@ const SAFARI_REGEX = /^((?!chrome|android).)*safari/i;
|
||||
|
||||
const plugin: Plugin = ({ req }, inject) => {
|
||||
inject('isSafari', () => {
|
||||
if (process.server && req) {
|
||||
if (process.server && req && req.headers['user-agent']) {
|
||||
return SAFARI_REGEX.test(req.headers['user-agent']);
|
||||
}
|
||||
|
||||
|
@ -219,7 +219,7 @@ export default hash.extend({
|
||||
}
|
||||
});
|
||||
this.sources = await this.$axios.$get('/sources');
|
||||
this.sourceLibrary = new SourceLibrary(this.$config, this.sources);
|
||||
this.sourceLibrary = new SourceLibrary(this.$config, this.sources!);
|
||||
},
|
||||
methods: {
|
||||
toId(str: string): string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user