Remove version string from feed url
This commit is contained in:
parent
a59756485e
commit
a8913f5ea0
1 changed files with 1 additions and 3 deletions
|
@ -35,9 +35,7 @@ void RelaunchToInstallUpdate() {
|
||||||
void AutoUpdater::SetFeedURL(const std::string& feed) {
|
void AutoUpdater::SetFeedURL(const std::string& feed) {
|
||||||
if (g_updater == nil) {
|
if (g_updater == nil) {
|
||||||
// Initialize the SQRLUpdater.
|
// Initialize the SQRLUpdater.
|
||||||
NSString *version = NSBundle.mainBundle.sqrl_bundleVersion;
|
NSURL* url = [NSURL URLWithString:base::SysUTF8ToNSString(feed)];
|
||||||
NSString *urlString = [NSString stringWithFormat:@"%@?version=%@", base::SysUTF8ToNSString(feed), version];
|
|
||||||
NSURL* url = [NSURL URLWithString:urlString];
|
|
||||||
NSURLRequest* urlRequest = [NSURLRequest requestWithURL:url];
|
NSURLRequest* urlRequest = [NSURLRequest requestWithURL:url];
|
||||||
g_updater = [[SQRLUpdater alloc] initWithUpdateRequest:urlRequest];
|
g_updater = [[SQRLUpdater alloc] initWithUpdateRequest:urlRequest];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue