Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const avatarDriverFactory = (base: UniDriver): AvatarDriver => {
return {
...coreAvatarDriverFactory(base),
src: async () => {
try {
return base.$('img').attr('src');
} catch (e) {}
return '';
},
};
};