mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Make agrument checking more robust
This commit is contained in:
parent
c5b553d4a6
commit
e0e88b25fe
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@ V1SubscriptionManager = require("./V1SubscriptionManager")
|
||||||
oneMonthInSeconds = 60 * 60 * 24 * 30
|
oneMonthInSeconds = 60 * 60 * 24 * 30
|
||||||
|
|
||||||
module.exports = FeaturesUpdater =
|
module.exports = FeaturesUpdater =
|
||||||
refreshFeatures: (user_id, notifyV1, callback)->
|
refreshFeatures: (user_id, notifyV1 = true, callback = () ->)->
|
||||||
if !callback?
|
if typeof notifyV1 == 'function'
|
||||||
callback = notifyV1
|
callback = notifyV1
|
||||||
notifyV1 = true
|
notifyV1 = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue