<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ahmad</title>
    <description>The latest articles on DEV Community by Ahmad (@ahmad777).</description>
    <link>https://dev.to/ahmad777</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1448681%2Fe2173e0e-e3ae-480c-affe-fd5350d9ff7d.png</url>
      <title>DEV Community: Ahmad</title>
      <link>https://dev.to/ahmad777</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ahmad777"/>
    <language>en</language>
    <item>
      <title>URL problem in JS</title>
      <dc:creator>Ahmad</dc:creator>
      <pubDate>Thu, 25 Apr 2024 09:56:11 +0000</pubDate>
      <link>https://dev.to/ahmad777/url-problem-in-js-52d3</link>
      <guid>https://dev.to/ahmad777/url-problem-in-js-52d3</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;saveT.addEventListener('click', function () {
  chrome.tabs.query({ currentWindow: true, active: true }, function (tabs) {
      myLeads.push(tabs[0].url);
        read(myLeads);
  })
});

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I am trying to get the URL of the currant page for me chrome extension but it dose not working and give me this message in the console&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Cannot read properties of undefined (reading 'query')
    at HTMLButtonElement.&amp;lt;anonymous&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and this my JSON file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
    "manifest_version": 3,
    "version": "1.0",
    "name": "Leads Tracker",
    "action": {
        "default_popup": "Examples.html",
        "default_icon": "icons8-rfid-signal-80.png"
    },
    "permissions": [
        "tabs"
    ]
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>url</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
