mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-03 20:34:20 +01:00
chore: apply linting to html ext too and fixes for files
This commit is contained in:
@@ -22,11 +22,11 @@
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
function xssAttack(){
|
||||
const div = document.createElement('div')
|
||||
div.id = 'the-malware'
|
||||
div.className = 'malware'
|
||||
div.innerHTML = 'XSS Succeeded'
|
||||
function xssAttack() {
|
||||
const div = document.createElement('div');
|
||||
div.id = 'the-malware';
|
||||
div.className = 'malware';
|
||||
div.innerHTML = 'XSS Succeeded';
|
||||
document.getElementsByTagName('body')[0].appendChild(div);
|
||||
throw new Error('XSS Succeded');
|
||||
}
|
||||
@@ -49,11 +49,11 @@
|
||||
var handler = setInterval(() => {
|
||||
cnt++;
|
||||
a = {};
|
||||
if(typeof a.polluted !== 'undefined') {
|
||||
if (typeof a.polluted !== 'undefined') {
|
||||
clearInterval(handler);
|
||||
xssAttack();
|
||||
}
|
||||
if(cnt>20) {
|
||||
if (cnt > 20) {
|
||||
clearInterval(handler);
|
||||
}
|
||||
}, 100);
|
||||
|
||||
Reference in New Issue
Block a user