Mercurial > addons > firefox-addons > feed-preview
comparison options/options.js @ 65:106d78e26d3c
Allow placeholder in the fragment identifier
author | Guido Berhoerster <guido+feed-preview@berhoerster.name> |
---|---|
date | Sat, 17 Apr 2021 23:45:30 +0200 |
parents | 46c0595f2dcc |
children |
comparison
equal
deleted
inserted
replaced
64:46c0595f2dcc | 65:106d78e26d3c |
---|---|
92 | 92 |
93 if (url.protocol !== 'http:' && url.protocol !== 'https:') { | 93 if (url.protocol !== 'http:' && url.protocol !== 'https:') { |
94 return browser.i18n.getMessage('invalidProtocolError'); | 94 return browser.i18n.getMessage('invalidProtocolError'); |
95 } | 95 } |
96 | 96 |
97 if (!(url.pathname.includes('%s') || url.search.includes('%s'))) { | 97 if (!(url.pathname.includes('%s') || url.search.includes('%s') || url.hash.includes('%s'))) { |
98 return browser.i18n.getMessage('missingPlaceholderError'); | 98 return browser.i18n.getMessage('missingPlaceholderError'); |
99 } | 99 } |
100 | 100 |
101 return ''; | 101 return ''; |
102 } | 102 } |