Skip to content

Commit

Permalink
Fix logo option regression
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Dec 22, 2017
1 parent 96902c5 commit b592479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/netlify-identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]"
);
Expand All @@ -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 = () => {
Expand Down

0 comments on commit b592479

Please sign in to comment.