Skip to content

Commit ddbded7

Browse files
author
Excodibur
committed
Fix switching between local and online api
1 parent 8385046 commit ddbded7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tahoma.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ Tahoma.prototype.login = function (callback) {
512512
return;
513513
}
514514

515-
if (controller.context.config.bearer_token) {
515+
if ((controller.local_url.length > 0) && controller.context.config.bearer_token) {
516516
controller.lastEventTime = new Date().getTime();
517517
controller.setConnected(true);
518518
controller.loginInProgress = false;

0 commit comments

Comments
 (0)