Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Updated README and little code changes #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed UnhandledPromiseRejectionWarning in tests
  • Loading branch information
rafaelklaessen committed Oct 6, 2017
commit d13821067f1292a89196a1f464d248de86058df5
6 changes: 2 additions & 4 deletions app/masthead.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ const injector = {
},

_log: function(message) {
if (this._config.debug) {
console.log(message);
}
if (this._config.debug) console.log(message);
},

_requestAsset: function(asset) {
Expand Down Expand Up @@ -122,7 +120,7 @@ const injector = {
.catch(error => {
this._log('MASTHEAD - ====== Error ======');
this._log(`MASTHEAD - statusCode: ${error.statusCode}`);
this._log(`MASTHEAD - asset: ${error.options.uri}`);
this._log(`MASTHEAD - asset: ${(error.options || {}).uri}`);
this._log('MASTHEAD - ====== Error ======');
});

Expand Down