Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
729440c5
Commit
729440c5
authored
Nov 22, 2017
by
Uzair Farooq
Browse files
Verify that the post message source origin us
https://tails.boum.org
parent
597e28a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
wiki/src/install/inc/js/dave_2.js
View file @
729440c5
...
...
@@ -3,7 +3,7 @@ document.addEventListener("DOMContentLoaded", function() {
window
.
addEventListener
(
"
message
"
,
receiveMessage
);
function
receiveMessage
(
event
)
{
if
(
event
.
source
!==
window
||
!
event
.
data
)
{
if
(
event
.
source
!==
window
||
event
.
origin
!==
"
https://tails.boum.org
"
||
!
event
.
data
)
{
return
;
}
if
(
event
.
data
.
action
===
"
verifying
"
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment