diff --git a/src/netlify-identity.js b/src/netlify-identity.js index 5eb08670f..1e5af4017 100644 --- a/src/netlify-identity.js +++ b/src/netlify-identity.js @@ -180,7 +180,7 @@ function runRoutes() { } function init(options = {}) { - const { APIUrl } = options; + const { APIUrl, logo = true } = options; const controlEls = document.querySelectorAll( "[data-netlify-identity-menu],[data-netlify-identity-button]" ); @@ -200,7 +200,7 @@ function init(options = {}) { }); store.init(instantiateGotrue(APIUrl)); - if (options.logo) store.modal.logo = options.logo; + store.modal.logo = logo; iframe = document.createElement("iframe"); iframe.id = "netlify-identity-widget"; iframe.onload = () => {