Skip to content

Commit 8b34ab0

Browse files
authored
Create WindowTypeCapabilities object fix
WindowTypeCapabilities object was created incorrectly.
1 parent 1f4a843 commit 8b34ab0

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)