From b2805401a57657302d3ecd8e5d0030adb6e4676d Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Wed, 29 Jul 2026 13:44:04 +0530 Subject: [PATCH] fix: add error handling for localStorage and HTTP requests --- examples/widget-gallery/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/widget-gallery/src/index.ts b/examples/widget-gallery/src/index.ts index 57b141244..ec688a7fc 100644 --- a/examples/widget-gallery/src/index.ts +++ b/examples/widget-gallery/src/index.ts @@ -129,7 +129,7 @@ class WidgetGalleryApp extends Widget { } // Tab switching: 1-6 - const num = parseInt(event.key); + const num = parseInt(event.key, 10); if (num >= 1 && num <= 6) { this._switchTab(num - 1); return true;