| Index: lib/basedomain.js |
| =================================================================== |
| --- a/lib/basedomain.js |
| +++ b/lib/basedomain.js |
| @@ -158,6 +158,14 @@ |
| } |
| /** |
| + * Strips the fragment from a URL. |
| + */ |
| +function stripFragmentFromURL(/**String*/ url) |
| +{ |
| + return url.replace(/#.*/, ""); |
| +} |
| + |
| +/** |
| * Parses URLs and provides an interface similar to nsIURI in Gecko, see |
| * https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIURI. |
| * TODO: Make sure the parsing actually works the same as nsStandardURL. |