Skip to content

Commit

Permalink
Fixed videos list initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Plastiquewind committed Jan 17, 2018
1 parent baa6ab2 commit ca96f60
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 112 deletions.
4 changes: 2 additions & 2 deletions app.d6ee7810cac7e6943ab8.js → app.32400dcdf5c37d03fa18.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app.32400dcdf5c37d03fa18.js.map

Large diffs are not rendered by default.

40 changes: 0 additions & 40 deletions app.a344f66695cf6ad85514.js

This file was deleted.

1 change: 0 additions & 1 deletion app.a344f66695cf6ad85514.js.map

This file was deleted.

1 change: 0 additions & 1 deletion app.d6ee7810cac7e6943ab8.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
<span>Загрузка...</span>
</div>
<script src="https://apis.google.com/js/api.js"></script>
<script type="text/javascript" src="/vendor.d6ee7810cac7e6943ab8.js"></script><script type="text/javascript" src="/app.d6ee7810cac7e6943ab8.js"></script></body>
<script type="text/javascript" src="/vendor.32400dcdf5c37d03fa18.js"></script><script type="text/javascript" src="/app.32400dcdf5c37d03fa18.js"></script></body>

</html>
2 changes: 1 addition & 1 deletion src/app/components/main/main.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class MainController implements ng.IComponentController {

// tslint:disable-next-line:no-empty
$onInit(): void {
this.videosList = localStorage.videosList;
this.videosList = JSON.parse(localStorage.videosList).join("\n");
this.videosListIsEmpty = !this.videosList || this.videosList.length === 0;

if (this.videosListIsEmpty) {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

62 changes: 0 additions & 62 deletions vendor.a344f66695cf6ad85514.js

This file was deleted.

1 change: 0 additions & 1 deletion vendor.a344f66695cf6ad85514.js.map

This file was deleted.

0 comments on commit ca96f60

Please sign in to comment.