File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func (lnd *LND) Connect() error {
48
48
macaroon , err := getMacaroon (lnd .MacaroonFile )
49
49
50
50
if macaroon == nil && err != nil {
51
- log .Error ("Failed to read macaroon file of LND: " , err )
51
+ log .Error ("Failed to read macaroon file of LND: " , err . Error () )
52
52
53
53
} else {
54
54
lnd .ctx = metadata .NewOutgoingContext (lnd .ctx , macaroon )
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ import (
10
10
"runtime"
11
11
"strings"
12
12
13
- "github.com/jessevdk/go-flags"
13
+ flags "github.com/jessevdk/go-flags"
14
14
"github.com/michael1011/lightningtip/backends"
15
15
"github.com/michael1011/lightningtip/database"
16
16
"github.com/michael1011/lightningtip/notifications"
17
17
"github.com/michael1011/lightningtip/version"
18
- "github.com/op/go-logging"
18
+ logging "github.com/op/go-logging"
19
19
)
20
20
21
21
const (
@@ -244,7 +244,6 @@ func getDefaultMacaroon() string {
244
244
}
245
245
}
246
246
247
- log .Warning ("Could not find macaroon file" )
248
247
return ""
249
248
}
250
249
Original file line number Diff line number Diff line change 2
2
// Don't forget the "/" at the end!
3
3
var requestUrl = window . location . protocol + "//" + window . location . hostname + ":8081/" ;
4
4
5
+ // Used for development
6
+ if ( window . location . protocol === "file:" ) {
7
+ requestUrl = "http://localhost:8081/"
8
+ }
9
+
5
10
// To prohibit multiple requests at the same time
6
11
var requestPending = false ;
7
12
@@ -320,4 +325,4 @@ function divRestorePlaceholder(element) {
320
325
if ( element . innerHTML === "<br>" || element . innerHTML === "<div><br></div>" ) {
321
326
element . innerHTML = "" ;
322
327
}
323
- }
328
+ }
You can’t perform that action at this time.
0 commit comments