Please move this onClick script to a script tag. https://github.com/Automattic/jetpack/blob/03af4344798a6cfa0777ed06753553021959c9f2/projects/plugins/jetpack/modules/scan/class-admin-bar-notice.php#L179 When `wp_add_inline_script` is used instead, I can hook into it and add a `nonce` to it.