Skip to content

Commit c3332b4

Browse files
committed
fix: prevent duplicate initialization of connector
1 parent dee7593 commit c3332b4

File tree

1 file changed

+4
-1
lines changed
  • src/main/resources/META-INF/frontend/fcEnhancedTabs

1 file changed

+4
-1
lines changed

src/main/resources/META-INF/frontend/fcEnhancedTabs/connector.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* #%L
33
* Enhanced Tabs Add-on
44
* %%
5-
* Copyright (C) 2023 Flowing Code
5+
* Copyright (C) 2023-2024 Flowing Code
66
* %%
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
@@ -21,6 +21,9 @@
2121
(function () {
2222
window.Vaadin.Flow.fcEnhancedTabsConnector = {
2323
initLazy: tabs => {
24+
25+
if (tabs.fcEnhancedTabsConnector) return;
26+
tabs.fcEnhancedTabsConnector = true;
2427

2528
let close = tabs._close;
2629

0 commit comments

Comments
 (0)