prevent drag and drop of malicious scripts
This commit is contained in:
parent
216f2eddb6
commit
fe21c82a80
2
jslib
2
jslib
|
@ -1 +1 @@
|
|||
Subproject commit 9bc7459eacb55a234da8dd8aa71c059a4cd3e1ee
|
||||
Subproject commit 76ece834d1d18e9cca71bb3c182d2284dae80958
|
|
@ -13,3 +13,7 @@ if (!isDev()) {
|
|||
}
|
||||
|
||||
platformBrowserDynamic().bootstrapModule(AppModule);
|
||||
|
||||
// Disable drag and drop to prevent malicious links from executing in the context of the app
|
||||
document.addEventListener('dragover', (event) => event.preventDefault());
|
||||
document.addEventListener('drop', (event) => event.preventDefault());
|
||||
|
|
Loading…
Reference in New Issue