mr_video
mr_video copied to clipboard
Add nil guards to Content_Type and URI
Content-Type
- If the
Content-Type
header isnil
an error is generated trying to extract the first element of the expectedArray
. - The preview needs that the
Content-Type
is at least a blankString
otherwise will raise an error: type is required.
URI
- A malformed
URI
raise an error preventing the preview to render, it is safe to ignore those on the relativeURI
switcher. example:
<a class="smart-alert" id="smart-link-{{type}}-{{id}}" href="{{action}}">Add Item</a>