Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Commit

Permalink
Update news feed selector after GitHub front page refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
julkue committed Jan 17, 2018
1 parent e3ffba4 commit 0061d2c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ module.exports = grunt => {
to: ''
},
{
from: /([A-Za-z]*\s?environment\s?=\s?")[A-Za-z0-9]*(";)/gmi,
from: /([A-Za-z]*\s?environment\s?=\s?["'])[A-Za-z0-9]*(["'];)/gmi,
to: '$1chrome$2'
}
]
Expand All @@ -120,7 +120,7 @@ module.exports = grunt => {
to: ''
},
{
from: /([A-Za-z]*\s?environment\s?=\s?")[A-Za-z0-9]*(";)/gmi,
from: /([A-Za-z]*\s?environment\s?=\s?["'])[A-Za-z0-9]*(["'];)/gmi,
to: '$1firefox$2'
}
]
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "news-feed-for-github",
"version": "1.2.0",
"version": "1.2.1",
"description": "GitHub news feed notifications directly in the browser",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "News Feed for GitHub",
"description": "GitHub news feed notifications directly in the browser",
"version": "1.2.0",
"version": "1.2.1",
"homepage_url": "https://github.com/julmot/news-feed-for-github",
"icons": {
"48": "icons/icon-48.png",
Expand Down
2 changes: 1 addition & 1 deletion extension/scripts/NewsFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class NewsFeed { // eslint-disable-line no-unused-vars
try {
let tmp = document.createElement('div');
tmp.innerHTML = unescape(data);
rss = tmp.querySelector('a.link-gray-dark');
rss = tmp.querySelector('a[href*="private.atom?token="]');
rss = rss.getAttribute('href');
if (rss === null || rss === '') {
throw new Error('err');
Expand Down
1 change: 1 addition & 0 deletions extension/scripts/NewsFeedChecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* with this source code.
*****************************************************/
'use strict';

class NewsFeedChecker extends NewsFeed { // eslint-disable-line no-unused-vars

constructor() {
Expand Down
1 change: 1 addition & 0 deletions extension/scripts/NewsFeedTransmitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* with this source code.
*****************************************************/
'use strict';

class NewsFeedTransmitter extends NewsFeedChecker { // eslint-disable-line no-unused-vars

constructor() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "news-feed-for-github",
"version": "1.2.0",
"version": "1.2.1",
"description": "GitHub news feed notifications directly in the browser",
"author": {
"name": "Julian Kühnel",
Expand Down

0 comments on commit 0061d2c

Please sign in to comment.