Skip to content

Commit bc0dbde

Browse files
authored
fix(browser-sdk): remove featureDefinition list (#323)
Feature list is pulled from front.bucket.co now so this manual list is superfluous.
1 parent bff834c commit bc0dbde

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/browser-sdk/src/client.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,6 @@ export type InitOptions = {
279279
* Toolbar configuration
280280
*/
281281
toolbar?: ToolbarOptions;
282-
283-
/**
284-
* Local-first definition of features.
285-
*/
286-
features?: FeatureDefinitions;
287282
};
288283

289284
const defaultConfig: Config = {
@@ -342,9 +337,7 @@ function shouldShowToolbar(opts: InitOptions) {
342337
if (typeof toolbarOpts === "boolean") return toolbarOpts;
343338
if (typeof toolbarOpts?.show === "boolean") return toolbarOpts.show;
344339

345-
return (
346-
opts.features !== undefined && window?.location?.hostname === "localhost"
347-
);
340+
return window?.location?.hostname === "localhost";
348341
}
349342

350343
/**

0 commit comments

Comments
 (0)