Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchoeler committed Mar 27, 2017
1 parent 6ba23e9 commit 597b60e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/rocketchat-mapview/client/mapview.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* @param {Object} message - The message object
*/


function MapView(message) {

// get MapView settings
Expand All @@ -17,9 +16,9 @@ function MapView(message) {

// confirm we have an api key set, and generate the html required for the mapview
if (mv_googlekey && mv_googlekey.length) {
message.html = `<a href="https://maps.google.com/maps?daddr=${latitude},${longitude}" target="_blank"><img src="https://maps.googleapis.com/maps/api/staticmap?zoom=14&size=250x250&markers=color:gray%7Clabel:%7C${latitude},${longitude}&key=${mv_googlekey}" /></a>`;
message.html = `<a href="https://maps.google.com/maps?daddr=${ latitude },${ longitude }" target="_blank"><img src="https://maps.googleapis.com/maps/api/staticmap?zoom=14&size=250x250&markers=color:gray%7Clabel:%7C${ latitude },${ longitude }&key=${ mv_googlekey }" /></a>`;
} else {
message.html = `<a href="https://maps.google.com/maps?daddr=${latitude},${longitude}" target="_blank">${TAPi18n.__('Shared_Location')}</a>`;
message.html = `<a href="https://maps.google.com/maps?daddr=${ latitude },${ longitude }" target="_blank">${ TAPi18n.__('Shared_Location') }</a>`;
}
}

Expand Down

0 comments on commit 597b60e

Please sign in to comment.