Skip to content

Commit 15b41b9

Browse files
committed
Fix domains undefined bug
1 parent 03ef45c commit 15b41b9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "GitHub Notification Helper for Gmail",
33
"short_name": "GitHub4Gmail",
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"manifest_version": 2,
66
"description": "Add links to GitHub threads and shortcuts to your Gmail interface.",
77
"homepage_url": "http://github-gmail.muan.co",

src/inject/inject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function initOnHashChangeAction(domains) {
1212
$(window).on('hashchange', function() {
1313
github_links = document.querySelectorAll('[href^="https://github.com/"]')
1414

15-
if(domains.length && !github_links.length) {
15+
if(domains && !github_links.length) {
1616
domains.map(function(name) {
1717
if(!github_links.length) {
1818
github_links = document.querySelectorAll('[href*="' + name + '"]')

0 commit comments

Comments
 (0)