[OPENMEETINGS-2613] JS error is fixed
diff --git a/openmeetings-web/src/main/front/wb/src/wb-tools.js b/openmeetings-web/src/main/front/wb/src/wb-tools.js
index 2f9e304..6065b33 100644
--- a/openmeetings-web/src/main/front/wb/src/wb-tools.js
+++ b/openmeetings-web/src/main/front/wb/src/wb-tools.js
@@ -363,6 +363,13 @@
 					//no-op
 			}
 		};
+		this.reactivateBtn() = () => {
+			const b = _getBtn();
+			if (__validBtn(b)) {
+				b.data().deactivate();
+				b.data().activate();
+			}
+		};
 		this.updateCoordinates = (o) => {
 			settings.find('.wb-dim-x').val(o.left);
 			settings.find('.wb-dim-y').val(o.top);
diff --git a/openmeetings-web/src/main/front/wb/src/wb.js b/openmeetings-web/src/main/front/wb/src/wb.js
index 02cb224..4d89e78 100644
--- a/openmeetings-web/src/main/front/wb/src/wb.js
+++ b/openmeetings-web/src/main/front/wb/src/wb.js
@@ -65,11 +65,7 @@
 					}
 					zoomBar.update(role, canvases.length);
 					if (ccount !== canvases.length) {
-						const b = _getBtn();
-						if (__validBtn(b)) {
-							b.data().deactivate();
-							b.data().activate();
-						}
+						WbTools.reactivateBtn();
 						self._showCurrentSlide();
 					}
 				}