mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-22 20:41:18 +00:00
Fix accessToken (#1275)
This commit is contained in:
parent
de94dc0e16
commit
0c61716c08
@ -107,7 +107,7 @@ module.exports = function(realmConstructor) {
|
||||
|
||||
if (realmConstructor.Sync._setFeatureToken) {
|
||||
realmConstructor.Sync.setFeatureToken = function(featureToken) {
|
||||
if (typeof featureToken !== 'string' || !(featureToken instanceof String)) {
|
||||
if (typeof featureToken !== 'string' && !(featureToken instanceof String)) {
|
||||
throw new Error("featureToken should be a string");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user