Minor fixes (#136)

* Fix typo
* Fix crooked merge result
This commit is contained in:
Michael Müller
2019-04-18 11:05:46 +02:00
committed by Maciej Hirsz
parent e1bad6e24b
commit fe03dddbd2
2 changed files with 4 additions and 8 deletions
-4
View File
@@ -2217,9 +2217,6 @@ GitHub Pages doesnt support routers that use the HTML5 `pushState` history AP
* You could switch from using HTML5 history API to routing with hashes. If you use React Router, you can switch to `hashHistory` for this effect, but the URL will be longer and more verbose (for example, `http://user.github.io/todomvc/#/todos/42?_k=yknaj`). [Read more](https://reacttraining.com/react-router/web/api/Router) about different history implementations in React Router.
* Alternatively, you can use a trick to teach GitHub Pages to handle 404 by redirecting to your `index.html` page with a special redirect parameter. You would need to add a `404.html` file with the redirection code to the `build` folder before deploying your project, and youll need to add code handling the redirect parameter to `index.html`. You can find a detailed explanation of this technique [in this guide](https://github.com/rafrex/spa-github-pages).
<<<<<<< HEAD
### Heroku
=======
#### Troubleshooting
##### "/dev/tty: No such a device or address"
@@ -2231,7 +2228,6 @@ If, when deploying, you get `/dev/tty: No such a device or address` or a similar
3. Try `npm run deploy again`
### [Heroku](https://www.heroku.com/)
>>>>>>> dfbc71ce2ae07547a8544cce14a1a23fac99e071
Use the [Heroku Buildpack for Create React App](https://github.com/mars/create-react-app-buildpack).<br>
You can find instructions in [Deploying React with Zero Configuration](https://blog.heroku.com/deploying-react-with-zero-configuration).
+4 -4
View File
@@ -47,7 +47,7 @@ export class Node {
public lon: Maybe<Types.Longitude>;
public city: Maybe<Types.City>;
private readonly subscribtions = new Set<(node: Node) => void>();
private readonly subscriptions = new Set<(node: Node) => void>();
constructor(
pinned: boolean,
@@ -141,15 +141,15 @@ export class Node {
}
public subscribe(handler: (node: Node) => void) {
this.subscribtions.add(handler);
this.subscriptions.add(handler);
}
public unsubscribe(handler: (node: Node) => void) {
this.subscribtions.delete(handler);
this.subscriptions.delete(handler);
}
private trigger() {
for (const handler of this.subscribtions.values()) {
for (const handler of this.subscriptions.values()) {
handler(this);
}
}