1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

prevent drag and drop of malicious scripts

This commit is contained in:
Kyle Spearrin
2018-07-15 17:27:26 -04:00
parent 216f2eddb6
commit fe21c82a80
2 changed files with 5 additions and 1 deletions

2
jslib

Submodule jslib updated: 9bc7459eac...76ece834d1

View File

@@ -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());