Skip to content

Commit b592479

Browse files
committed
Fix logo option regression
1 parent 96902c5 commit b592479

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/netlify-identity.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ function runRoutes() {
180180
}
181181

182182
function init(options = {}) {
183-
const { APIUrl } = options;
183+
const { APIUrl, logo = true } = options;
184184
const controlEls = document.querySelectorAll(
185185
"[data-netlify-identity-menu],[data-netlify-identity-button]"
186186
);
@@ -200,7 +200,7 @@ function init(options = {}) {
200200
});
201201

202202
store.init(instantiateGotrue(APIUrl));
203-
if (options.logo) store.modal.logo = options.logo;
203+
store.modal.logo = logo;
204204
iframe = document.createElement("iframe");
205205
iframe.id = "netlify-identity-widget";
206206
iframe.onload = () => {

0 commit comments

Comments
 (0)