mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-03 02:11:07 +05:30
fix(updater): dispatch setFeedURL by provider instead of raw url
This commit is contained in:
@@ -28,4 +28,11 @@ function resolveFeedUrl(channel, version, platform) {
|
||||
return feedForChannel(channel, version, platform);
|
||||
}
|
||||
|
||||
module.exports = { resolveFeedUrl, FEEDS };
|
||||
function feedConfigFor(channel) {
|
||||
if (channel === 'github') {
|
||||
return { provider: 'github', owner: 'amitwh', repo: 'markdown-converter' };
|
||||
}
|
||||
return { provider: 'generic', url: 'https://updates.concreteinfo.co.in/v5' };
|
||||
}
|
||||
|
||||
module.exports = { resolveFeedUrl, feedConfigFor, FEEDS };
|
||||
Reference in New Issue
Block a user