sasakiassociates / speckle

JavaScript client for the Speckle API
15 stars 1 forks source link

Default server is not set when passing token #6

Closed gouldingken closed 1 year ago

gouldingken commented 1 year ago

in Speckle.ts, the default set at the top is always overwritten if any args are passed. If token is passed, but not server it should not override the default

    public readonly server: string = 'https://speckle.xyz';
    public readonly token?: string;

    constructor(args?: SpeckleConfig) {
        if (args) {
            this.server = args.server;
            this.token = args.token;
        }
    }
ericyoungberg commented 1 year ago

Solved this morning