Skip to content

Commit

Permalink
Change to always open new manoto url closes #3025
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Aug 25, 2015
1 parent ba2e4d2 commit 62f558a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/github.com/getlantern/flashlight/ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"net/http"
"path/filepath"
"runtime"
"strings"
"time"

"github.com/getlantern/flashlight/packaged"
Expand Down Expand Up @@ -135,8 +136,17 @@ func openExternalUrl() {
return
}

var url string
if s.StartupUrl == "" {
return
} else if strings.HasPrefix(s.StartupUrl, "https://www.facebook.com/manototv") {
// Here we make sure to override any old manoto URLs with the latest.
url = "https://www.facebook.com/manototv/app_128953167177144"
} else {
url = s.StartupUrl
}
time.Sleep(4 * time.Second)
err = open.Run(s.StartupUrl)
err = open.Run(url)
if err != nil {
log.Errorf("Error opening external page to `%v`: %v", uiaddr, err)
}
Expand Down

0 comments on commit 62f558a

Please sign in to comment.