Quantcast
Channel: Pale Moon forum
Viewing all articles
Browse latest Browse all 2337

Add-ons • Using URL object from extension

$
0
0
I am writing some code for an extension, and I would like to get the hostname part of a URL. The easiest way to do this is to construct a new URL object then access the hostname property. However, when I do that I get an error that "URL" is not defined. Does this object not exist in the scope of XUL extensions?

Viewing all articles
Browse latest Browse all 2337

Trending Articles