···22 "name": "tug",
33 "description": "A tug for every notification",
44 "private": true,
55- "version": "0.1.1",
55+ "version": "0.1.2",
66 "type": "module",
77 "scripts": {
88 "dev": "wxt",
+1-1
utils/api.ts
···1212 // FIX: requires backend to return 401 when not logged in (currently returns 200 even if not logged in)
1313 if (!response.ok) throw new Error(`HTTP ${response.status}`);
1414 const html = await response.text();
1515- const match = html.match(/>(\d+\+?)</);
1515+ const match = html.match(/>\s*(\d+\+?)\s*</);
1616 return match ? parseInt(match[1], 10) : 0;
1717};