1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-28 12:35:40 +01: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

@ -1 +1 @@
Subproject commit 9bc7459eacb55a234da8dd8aa71c059a4cd3e1ee Subproject commit 76ece834d1d18e9cca71bb3c182d2284dae80958

View File

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