Browse Source

use the new mousetrap API

Alan Shreve 11 years ago
parent
commit
9bdf1ef2b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ngrok/client/main.go

+ 1 - 1
src/ngrok/client/main.go

@@ -13,7 +13,7 @@ import (
 
 
 func init() {
 func init() {
 	if runtime.GOOS == "windows" {
 	if runtime.GOOS == "windows" {
-		if ok, err := mousetrap.InvokedFromCommandLine(); err == nil && !ok {
+		if mousetrap.StartedByExplorer() {
 			fmt.Println("Don't double-click ngrok!")
 			fmt.Println("Don't double-click ngrok!")
 			fmt.Println("You need to open cmd.exe and run it from the command line!")
 			fmt.Println("You need to open cmd.exe and run it from the command line!")
 			time.Sleep(5 * time.Second)
 			time.Sleep(5 * time.Second)