Skip to content

Commit

Permalink
🐛 Fix linter warnings, as well as dumb mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Oct 6, 2020
1 parent b0989cb commit 5401a47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/js/riotHotReload.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,4 @@

riot.observable(reload);
riot.reload = reload;
//if (riot.default) {
// riot.default.reload = reload;
//}
})();
4 changes: 2 additions & 2 deletions src/riotTags/notepad-panel.tag
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ notepad-panel#notepad.panel.dockright(class="{opened: opened}")

var openDocs = e => {
this.changeTab('helppages')();
this.refs.helpIframe.contentWindow.location = `http://localhost:${fileServer.address().port}${e.path || '/'}`;
this.refs.helpIframe.contentWindow.location = `http://localhost:${this.server.address().port}${e.path || '/'}`;
this.opened = true;
this.update();
};

this.backToHome = () => {
this.refs.helpIframe.contentWindow.location = `http://localhost:${fileServer.address().port}/`;
this.refs.helpIframe.contentWindow.location = `http://localhost:${this.server.address().port}/`;
};

window.signals.on('openDocs', openDocs);
Expand Down

0 comments on commit 5401a47

Please sign in to comment.