Skip to content

Commit 63d3870

Browse files
authored
Merge pull request #562 from smartdevicelink/bugfix/create_window_type_capabilities
Create WindowTypeCapabilities object issue
2 parents 1f4a843 + 8b34ab0 commit 63d3870

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/js/src/manager/SystemCapabilityManager.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ class SystemCapabilityManager extends _SubManagerBase {
225225

226226
// Based on deprecated Display capabilities we don't know if widgets are supported,
227227
// The Default MAIN window is the only window we know is supported
228-
const windowTypeCapabilities = new WindowTypeCapabilities(WindowType.MAIN, 1);
228+
const windowTypeCapabilities = new WindowTypeCapabilities()
229+
.setType(WindowType.MAIN)
230+
.setMaximumNumberOfWindows(1);
229231
const displayCapability = new DisplayCapability();
230232

231233
if (displayCapabilities !== null && displayCapabilities !== undefined) {

0 commit comments

Comments
 (0)