From a7f15f0b718446a4f8922c602e1df671716490e4 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Thu, 15 Jan 2015 13:24:35 +0100 Subject: [PATCH] URL handling changes --- platform/firefox/vapi-client.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/platform/firefox/vapi-client.js b/platform/firefox/vapi-client.js index 4886bb6..42c2cdf 100644 --- a/platform/firefox/vapi-client.js +++ b/platform/firefox/vapi-client.js @@ -174,6 +174,19 @@ vAPI.canExecuteContentScript = function() { /******************************************************************************/ +vAPI.getUrlNormalizer = function() { + return { + get href() { + return this._url || ''; + }, + set href(url) { + this._url = _urlNormalizer_(url, document.baseURI); + } + }; +}; + +/******************************************************************************/ + })(this); /******************************************************************************/