Skip to content

Commit

Permalink
Melhorando tratamento do texto da notificação para alguns modelos de …
Browse files Browse the repository at this point in the history
…título
  • Loading branch information
dotenorio committed Sep 2, 2016
1 parent b075dca commit 69e6c7d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Baixe na [Chrome Web Store](https://chrome.google.com/webstore/detail/tocando-ag

### Changelog ###

* 1.6.17
* Melhorando tratamento do texto da notificação para alguns modelos de título

* 1.6.16
* Adicionando reposítório no GitHub

Expand Down
2 changes: 1 addition & 1 deletion extension/assets/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var Utils = {
var splitTitle = title.split(' - ')
if (splitTitle.length >= 2) {
options.title = splitTitle[0]
options.message = splitTitle[splitTitle.length - 1]
options.message = splitTitle[1].split(' [')[0]
options.contextMessage = Manifest.name
callback(options)
} else if (message === 'YouTube') {
Expand Down
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Tocando agora (beta)",
"version": "1.6.16",
"version": "1.6.17",
"default_locale": "pt_BR",
"description": "__MSG_extDescription__",
"background": {
Expand Down

0 comments on commit 69e6c7d

Please sign in to comment.