mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-29 07:18:08 +09:00
Use typeof
This commit is contained in:
parent
98ff6cdf91
commit
d60683d7ce
@ -25,7 +25,7 @@ export default (params: any) => new Promise(async (res, rej) => {
|
||||
|
||||
const set = {} as any;
|
||||
|
||||
if (ps.disableRegistration === true || ps.disableRegistration === false) {
|
||||
if (typeof ps.disableRegistration === 'boolean') {
|
||||
set.disableRegistration = ps.disableRegistration;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user