Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
var color, img;
try{
color = this.props.collection.color;
img = (this.props.collection.cover||[])[0];
}catch(e){}
if (!img)
return null;
return (
<div>
</div>
case "cant_insert_bookmark":
case "cant_get_url":
window.location.hash = '#/error/savebookmark'
break;
case "forbidden_url":
window.location.hash = "#/forbidden";
break;
case "is_raindrop_url":
window.location.hash = "#/forbidden?raindrop=1";
break;
case "newtab_url":
extensionHelpers.openTab(network.fixURL('/app'))
break;
default:
window.location.hash = '#/error/default?e='+encodeURIComponent(e)
break;
}
}