Skip to content

Commit

Permalink
Merge pull request #21 from gion/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
gion committed Sep 1, 2015
2 parents fb640ee + bb035cc commit d3f57a3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "__MSG_appName__",
"short_name": "__MSG_appShortName__",
"version": "0.1.6",
"version": "0.1.7",
"manifest_version": 2,
"description": "__MSG_appDescription__",
"icons": {
Expand Down Expand Up @@ -32,8 +32,8 @@
"content_scripts": [
{
"matches": [
"http://bitbucket.org/*pull-requests/*/*",
"https://bitbucket.org/*pull-requests/*/*"
"http://bitbucket.org/*pull-requests/*",
"https://bitbucket.org/*pull-requests/*"
],
"css": [
"styles/content.css"
Expand Down
5 changes: 5 additions & 0 deletions app/scripts/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ var api = (function() {

run: function() {

// do not run on the multiple pull requests page
if(util.isPullRequestsListingPage()) {
return;
}

$('html').addClass('bitship-enabled');

api.settings = util.storage.get(function(settings) {
Expand Down
5 changes: 5 additions & 0 deletions app/scripts/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ var util = (function() {
this.data = this.data || data || {};
chrome.storage.sync.set({bitShip: JSON.stringify(this.data)}, callback);
}
},

isPullRequestsListingPage: function() {
// this element should be available oly on multiple pull request page
return !!document.getElementById('list-pullrequests');
}
};
return util;
Expand Down

0 comments on commit d3f57a3

Please sign in to comment.