Skip to content

Feature/output channel #557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jan 3, 2022
Prev Previous commit
Next Next commit
only log non-trusted security warnings
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed Jan 2, 2022
commit 020b0aeeadf1b08407198bb2593f08349856d4c5
7 changes: 3 additions & 4 deletions web-app/src/services/listeners/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import ReactDOM from 'react-dom'
import logger from '../logger'

// document listeners

document.addEventListener('securitypolicyviolation', (event) => {
// TODO: add error handling
logger(`Security warning for resource: ${JSON.stringify(event)}`)
if (event.isTrusted !== true) {
logger(`Security warning for resource: ${JSON.stringify(event)}`)
}
})