diff options
author | Wojtek Kosior <koszko@koszko.org> | 2021-06-30 12:28:05 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2021-06-30 12:28:05 +0200 |
commit | 261548ff184926567a623e90df7954aeef842d59 (patch) | |
tree | 9b5697a77c758eaae969a8fba8b4edea5ecf59d4 /common/url_item.js | |
parent | 83a8d263f6efddf4f742bf7a687d10bfd1907ef8 (diff) | |
download | browser-extension-261548ff184926567a623e90df7954aeef842d59.tar.gz browser-extension-261548ff184926567a623e90df7954aeef842d59.zip |
emply an sh-based build system; make some changes to blocking
Diffstat (limited to 'common/url_item.js')
-rw-r--r-- | common/url_item.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/common/url_item.js b/common/url_item.js index 9f4b118..102f117 100644 --- a/common/url_item.js +++ b/common/url_item.js @@ -5,15 +5,15 @@ * Redistribution terms are gathered in the `copyright' file. */ -"use strict"; +function url_item(url) +{ + let url_re = /^([^?#]*).*$/; + let match = url_re.exec(url); + return match[1]; +} -(() => { - function url_item(url) - { - let url_re = /^([^?#]*).*$/; - let match = url_re.exec(url); - return match[1]; - } - - window.url_item = url_item; -})(); +/* + * EXPORTS_START + * EXPORT url_item + * EXPORTS_END + */ |