Compare commits

...

5 Commits

Author SHA1 Message Date
bumi 8ff67efa8b
Update README.md 2020-10-26 00:59:09 +01:00
bumi f79fb1747f Respect PORT environment variable
this makes it easier to run on PaaS as heroku
2020-10-25 23:44:40 +01:00
bumi 89ecea4d4a Update rice box
For whatever reason the order of the file has changed...
2020-10-25 23:09:14 +01:00
bumi 9c78c91ab5
Merge pull request #1 from karliatto/fix/when-widget-closed-stop-watching-payment
fix: when widget closed stop watching payment
2020-10-25 23:06:34 +01:00
Carlos Garcia Ortiz karliatto e7acaf7821 fix: when widget closed stop watching payment 2020-10-25 12:47:35 +01:00
4 changed files with 40 additions and 31 deletions

View File

@ -46,7 +46,7 @@ To connect to the lnd node the cert, macaroon and address of the lnd node has to
Instead of the path to the macaroon and cert files you can also provide the hex strings:
* `lnd-cert`: LND TLS cert as HEX string.
* `lnd-macaroon`: LND macaroon file. (invoice.macaroon is recommended)
* `lnd-macaroon`: LND macaroon HEX string. (invoice.macaroon is recommended)
#### Other configuration

View File

@ -210,6 +210,11 @@ class LnMe {
shouldSetHash: false
});
this.target = document.querySelector('.jPopup .content').firstElementChild;
// When popup is closed, we stop watching the payment.
document.querySelector('.jCloseBtn').addEventListener('click', (e) => {
this.stopWatchingPayment();
});
}
thanks() {

View File

@ -141,7 +141,11 @@ func main() {
return c.JSON(http.StatusOK, "pong")
})
e.Logger.Fatal(e.Start(":" + cfg.String("port")))
port := cfg.String("port")
if os.Getenv("PORT") != "" {
port = os.Getenv("PORT")
}
e.Logger.Fatal(e.Start(":" + port))
}
func LoadConfig() *koanf.Koanf {

File diff suppressed because one or more lines are too long