Skip to content

Commit 7a01ec0

Browse files
author
Emmanouil Konstantinidis
committed
Merge branch 'master' into authwindow-clipboard
2 parents c9f1516 + 1b4a0e3 commit 7a01ec0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"watch-js": "watchify -t reactify src/js/app.js -o build/js/app.js -v",
1010
"watch": "grunt build && npm build && npm run watch-js | grunt watch",
1111
"start": "electron .",
12-
"dist": "rm -rf Gitify.app/ && electron-packager . Gitify --platform=darwin --arch=x64 --version=0.26.1 --icon=images/app-icon.icns --prune --ignore=src",
12+
"dist": "rm -rf Gitify.app/ && electron-packager . Gitify --platform=darwin --arch=x64 --version=0.27.1 --icon=images/app-icon.icns --prune --ignore=src",
1313
"test": "jsxhint --reporter node_modules/jshint-stylish/stylish.js 'src/**/*.js', 'index.js' --exclude 'Gruntfile.js'"
1414
},
1515
"repository": {
@@ -44,8 +44,8 @@
4444
"watchify": "=3.2.1"
4545
},
4646
"devDependencies": {
47-
"electron-packager": "=4.1.1",
48-
"electron-prebuilt": "=0.26.1",
47+
"electron-packager": "=4.1.2",
48+
"electron-prebuilt": "=0.27.1",
4949
"grunt": "=0.4.5",
5050
"grunt-contrib-clean": "=0.6.0",
5151
"grunt-contrib-copy": "=0.8.0",

src/js/stores/notifications.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var NotificationsStore = Reflux.createStore({
2626
var tokens = AuthStore.authStatus();
2727

2828
apiRequests
29-
.getAuth('https://api.github.com/notifications?now=' + Date.now())
29+
.getAuth('https://api.github.com/notifications')
3030
.end(function (err, response) {
3131
if (response && response.ok) {
3232
// Success - Do Something.

src/js/utils/api-requests.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ var apiRequests = {
2121
.get(url)
2222
.set('Accept', 'application/vnd.github.v3+json')
2323
.set('Authorization', 'token ' + AuthStore.authStatus())
24+
.set('Cache-Control', 'no-cache')
2425
.set('User-Agent', 'Gitify');
2526
},
2627

@@ -30,6 +31,7 @@ var apiRequests = {
3031
.send(params)
3132
.set('Accept', 'application/vnd.github.v3+json')
3233
.set('Authorization', 'token ' + AuthStore.authStatus())
34+
.set('Cache-Control', 'no-cache')
3335
.set('User-Agent', 'Gitify');
3436
}
3537
};

0 commit comments

Comments
 (0)