Skip to content
This repository has been archived by the owner. It is now read-only.

Target may not have an href #6741

Merged
merged 1 commit into from Jan 19, 2017
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Target may not have an href

  • Loading branch information
jonathansampson committed Jan 19, 2017
commit 08d2fb9d9d04f3a292ff22280a3a2fc4644d60b0
@@ -31,7 +31,7 @@ if (adobeRegex.test(window.location.href)) {

if (chrome.contentSettings.flashEnabled == 'allow') {
document.addEventListener('click', (e) => {
if (e.target.href.match(adobeRegex)) {
if (e.target.href && e.target.href.match(adobeRegex)) {
e.preventDefault()
chrome.ipcRenderer.send('dispatch-action', JSON.stringify({
actionType: 'app-flash-permission-requested',
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.