Browse Source

Enable production version checking.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
00eae8cb5d
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/app/common.cpp

+ 2
- 3
src/app/common.cpp View File

@@ -14,7 +14,7 @@ std::string APP_NEW_VERSION;
std::string API_URL = "https://api.vcvrack.com";

static void checkVersion() {
std::string versionUrl = app::API_URL + "/version2";
std::string versionUrl = app::API_URL + "/version";
json_t *versionResJ = network::requestJson(network::METHOD_GET, versionUrl, NULL);
if (!versionResJ) {
WARN("Request for version failed");
@@ -30,8 +30,7 @@ static void checkVersion() {
}

void init() {
// TODO
if (!settings::devMode || 1) {
if (!settings::devMode) {
std::thread t([] {
checkVersion();
});


Loading…
Cancel
Save