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

@@ -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.