mirror of
https://github.com/microsoft/AI-Red-Teaming-Playground-Labs.git
synced 2026-06-07 07:53:53 +02:00
14 lines
394 B
JavaScript
14 lines
394 B
JavaScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
//Patch to perfom a reload of the page when a challenge is solved
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
setInterval(() => {
|
|
const reloadCmd = localStorage.getItem('reloadCmd');
|
|
if (reloadCmd) {
|
|
localStorage.removeItem('reloadCmd');
|
|
window.location.reload();
|
|
}
|
|
}, 1500);
|
|
});
|