mirror of
https://github.com/bitwarden/desktop
synced 2025-12-21 10:43:19 +00:00
prevent drag and drop of malicious scripts
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 9bc7459eac...76ece834d1
@@ -13,3 +13,7 @@ if (!isDev()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule);
|
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());
|
||||||
|
|||||||
Reference in New Issue
Block a user