Skip to content

Remove legacy code #48

@muan

Description

@muan

There's always a gotoaction! ⚡

} else if( (title = selected.innerText.match(/\[(.*)\]\s.*\s\(\#(\d*)\)/)) ) {
// If the title looks like a GitHub notification email.
// org name coms from a label
regexp = new RegExp(regexp)
label = selected.querySelectorAll('.av')[0]
if(label) org = label.innerText.toLowerCase().match(regexp)
if(org) {
org = org[1]
repo = title[1]
issue_no = title[2]
url = "https://github.com/" + org + "/" + repo + "/issues/" + issue_no
chrome.extension.sendMessage({url: url})
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions