mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
import validation
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user