diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-22 10:24:07 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-22 10:24:07 +0200 |
commit | bcba311485074e75ad62f338cc8159bf99522fab (patch) | |
tree | 56d011f2a48c87e9e727c016d31f14ee47da83e1 /js/public | |
parent | 5f71477e1a8ac9704e5c580a5bb5d8d820a43a19 (diff) |
add http:// to feed url if its not specified, fix #111 and fix #61
Diffstat (limited to 'js/public')
-rw-r--r-- | js/public/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/public/app.js b/js/public/app.js index 92f5f1926..de1725c2c 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -41,7 +41,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. return $provide.value('Config', config = { markReadTimeout: 500, scrollTimeout: 500, - feedUpdateInterval: 1000 * 60 * 5, + feedUpdateInterval: 1000 * 60 * 3, itemBatchSize: 20, autoPageFactor: 6 }); @@ -870,6 +870,9 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. throw new Error('Url must not be empty'); } url = url.trim(); + if (url.indexOf('http') !== 0) { + url = 'http://' + url; + } if (this._feedModel.getByUrl(url)) { throw new _ExistsError('Exists already'); } |