-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚧 [WIP] Revamp metabox into admin settings #17
Conversation
5a61cd5
to
132cb1f
Compare
const elem = document.querySelector(`.likecoin${selector}`); | ||
elem.style.display = ''; | ||
const elems = document.querySelectorAll(`.likecoin${selector}`); | ||
elems.forEach((elem) => { elem.style.display = ''; }); // eslint-disable-line no-param-reassign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
querySelectorAll
is not returning an array, but a NodeList
, see: https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach#Browser_Compatibility
Do we need Array.prototype.forEach.call(elems, ...)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we trust babel in this case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zloirock/core-js#329 seems it doesn't polyfill itself, will handle later
likecoin/assets/js/likecoin.js
Outdated
@@ -95,6 +92,7 @@ async function login() { | |||
throw new Error(webThreeError); | |||
} | |||
const challenge = await fetchLikeCoinID(address); | |||
console.log(challenge); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug usage? Or intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
🎨 shorten wallet in UI
🚸 Hide menu when cannot edit site likebutton setting
🎨 Show site LikeCoin ID in My LikeButton page if site button is enabled
Also updated UI