1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

import validation

This commit is contained in:
Kyle Spearrin
2016-10-17 23:18:19 -04:00
parent e7a9699226
commit 517ea65bc9
3 changed files with 14 additions and 3 deletions

View File

@@ -5,6 +5,11 @@
var _service = {};
_service.import = function (source, file, success, error) {
if (!file) {
error();
return;
}
switch (source) {
case 'local':
importLocal(file, success, error);