Skip to content

Commit 4ec6a37

Browse files
Remove tool from constructor
1 parent 7c4e307 commit 4ec6a37

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Particle.js

-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class Particle {
2828
* @param {string} [options.clientId]
2929
* @param {number} [options.tokenDuration]
3030
* @param {string} [options.auth] The access token. If not specified here, will have to be added to every request
31-
* @param {ToolContext} [options.tool] The tool context which will add the X-Particle-Tool header to every request
3231
*/
3332
constructor(options = {}){
3433
if (options.auth) {
@@ -38,7 +37,6 @@ class Particle {
3837
// todo - this seems a bit dangerous - would be better to put all options/context in a contained object
3938
Object.assign(this, Defaults, options);
4039
this.context = {};
41-
this.setContext('tool', options.tool);
4240

4341
this.agent = new Agent(this.baseUrl);
4442
}

0 commit comments

Comments
 (0)