Fix accessToken (#1275)

This commit is contained in:
Kenneth Geisshirt 2017-09-01 11:53:52 +02:00 committed by GitHub
parent de94dc0e16
commit 0c61716c08

View File

@ -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");
}