<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Javascript on Carlos Urreta&#39;s Weblog</title>
    <link>https://urreta.com/tags/javascript/</link>
    <description>Recent content in Javascript on Carlos Urreta&#39;s Weblog</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Fri, 16 Jan 2026 17:48:07 -0600</lastBuildDate>
    <atom:link href="https://urreta.com/tags/javascript/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Fixing Poshmark&#39;s Annoying Hover Menus</title>
      <link>https://urreta.com/2026/01/16/fixing-poshmarks-annoying-hover-menus/</link>
      <pubDate>Fri, 16 Jan 2026 17:48:07 -0600</pubDate>
      <guid>https://urreta.com/2026/01/16/fixing-poshmarks-annoying-hover-menus/</guid>
      <description>&lt;p&gt;I was watching my sister browse Poshmark when she accidentally hovered over one of the navigation menus. The entire screen was immediately covered by a massive dropdown. Classic bad UX—hover menus that are too eager and too large.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Debugging the Browser Camera API</title>
      <link>https://urreta.com/2026/01/06/debugging-the-browser-camera-api/</link>
      <pubDate>Tue, 06 Jan 2026 09:49:47 -0600</pubDate>
      <guid>https://urreta.com/2026/01/06/debugging-the-browser-camera-api/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve been adding a feature to &lt;a href=&#34;https://garbs.net&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Garbs.net&lt;/a&gt; that lets you take photos directly from the browser using the &lt;a href=&#34;https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;ImageCapture API&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It was working great on my Pixel 9a, but when my sister tested on her Galaxy S21, all our closeup test shots were coming out blurry. The issue? Her phone has an extra ultrawide lens with a fixed focus, and my code wasn&amp;rsquo;t picking the correct camera.&lt;/p&gt;&#xA;&lt;p&gt;After some digging, I discovered that Camera 0 (the &amp;ldquo;Main&amp;rdquo; camera) was being returned as index 3 or 4 on her device. The camera enumeration order isn&amp;rsquo;t consistent across phones.&lt;/p&gt;</description>
    </item>
    <item>
      <title>TIL: HTML Error Responses Can Crash Wails JavaScript Bindings</title>
      <link>https://urreta.com/2025/08/06/til-html-error-responses-can-crash-wails-javascript-bindings/</link>
      <pubDate>Wed, 06 Aug 2025 00:00:00 +0000</pubDate>
      <guid>https://urreta.com/2025/08/06/til-html-error-responses-can-crash-wails-javascript-bindings/</guid>
      <description>&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt;&#xA;I was working on a Wails desktop application and had the Go backend upload a photo to my own API (another service). When the photo failed to upload I didn&amp;rsquo;t catch that my own upload endpoint was returning an HTML error response instead of JSON. This caused the Javascript VM to show &amp;ldquo;NeedDebuggerBreak trap&amp;rdquo; and promises never resolved.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&#xA;I didn&amp;rsquo;t fully debug whether the issue was because the HTML was too large or special characters in the response were causing an issue. The solution was to have the API return a proper JSON response.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
