Skip to content

Commit f096176

Browse files
authored
Fix for bug#259 (#260)
2 parents 6cc1a40 + 4b7f288 commit f096176

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ module.exports = class Client {
217217
* @prop {string} [signature] User auth token signature (in 'sessionid_sign' cookie)
218218
* @prop {boolean} [DEBUG] Enable debug mode
219219
* @prop {'data' | 'prodata' | 'widgetdata'} [server] Server type
220+
* @prop {string} [location] Auth page location (For france: https://fr.tradingview.com/)
220221
*/
221222

222223
/** Client object
@@ -234,6 +235,7 @@ module.exports = class Client {
234235
misc.getUser(
235236
clientOptions.token,
236237
clientOptions.signature ? clientOptions.signature : '',
238+
clientOptions.location ? clientOptions.location : "https://tradingview.com",
237239
).then((user) => {
238240
this.#sendQueue.unshift(protocol.formatWSPacket({
239241
m: 'set_auth_token',

0 commit comments

Comments
 (0)