Skip to content

Commit

Permalink
chore: Add promise label for better instrumentation with Ember Inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
raido committed Jan 21, 2016
1 parent bdba435 commit 378ccf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addon/services/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ export default Ember.Service.extend(BaseServiceMixin, {
return this.get(`targetOriginMap.${target}`);
},

fetch(question, queryParams) {
fetch(path, queryParams) {
let client = this;
let uri = client._parseURI(question);
let uri = client._parseURI(path);
let targetName = uri.target;

let targetOrigin = client._targetOriginFor(targetName);
Expand All @@ -96,7 +96,7 @@ export default Ember.Service.extend(BaseServiceMixin, {
}
};
target.postMessage(JSON.stringify(query), targetOrigin);
});
}, `ember-window-messenger: ${path}`);
},

/**
Expand Down

0 comments on commit 378ccf3

Please sign in to comment.