« first day (4071 days earlier)      last day (862 days later) » 

1:26 AM
posted on December 08, 2021 by Matt

The Dev channel is being updated to 98.0.4744.1 (Platform version: 14382.0.0) for most Chrome OS devices. If you find new issues, please let us know by visiting our forum or filing a bug. Interested in switching channels Find out how. You can submit feedback using ‘Report an issue...’ in the Chrome menu (3 vertical dots in the upper right corner of the browser).&nb

 
 
3 hours later…
user17382064
4:08 AM
kevin, vlaz.
 
user17382064
Which of these callback syntax's should I use.
 
user17382064
  //callback syntax
  function getWrapper(cover) {

    function isCover(player) {
      return player.cover === cover;
    }

    const index = players.findIndex(isCover);
    const wrapper = players[index].wrapper;
    return wrapper;
  }
 
user17382064
or
 
user17382064
// inline callback syntax
  function getWrapper(cover) {
    const index = players.findIndex(
      function isCover(player) {
        return player.cover === cover;
      }
    );
    const wrapper = players[index].wrapper;
    return wrapper;
  }
 
user17382064
Anyone?
 
user17382064
4:16 AM
I have to choose which one I want to use.
 
user17382064
I can use either, but I have to pick 1 of them.
 
user17382064
4:29 AM
Should I avoid or not use the inline callback syntax
 
user17382064
??????
 
Hello
I work with splidejs a java script lib but I have a problem( media query doesn't work with splidejs) the same problem here https://stackoverflow.com/questions/66149966/required-mediaquery-help-and-explanation
 
 
1 hour later…
5:41 AM
@bhavesh Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. See the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
@bhavesh Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
1 message moved to Trash can
 
How to deal with callback & how can use async-await more in node js if I have multiple codes in sync(with callbacks)?
 
 
5 hours later…
10:27 AM
With font-awesome 6, I am not able to use aria-hidden="false". Whether I use aria attribute, the inspector always show a warning and aria-hidden="true" on icon. Does anyone know what I am doing wrong. Or we are not allowed to change that with new versions
 
10:40 AM
The code is as simple as this: <i class="fas fa-edit" aria-hidden="false"></i>
Sorry warning is shown when use button instead of i
When I inspect that element than it has code: <i class="fas fa-edit" aria-hidden="true"></i>. No matter I use aria-hidden=true/false or don't use at all.
 
 
2 hours later…
user17382064
1:00 PM
How do I replace this arrow function with a regular function?
 
user17382064
  function getWrapper(cover) {
    const index = players.findIndex(
      (player) => player.cover === cover
    );
    return players[index].wrapper;
  }
 
user17382064
1:22 PM
This was my attempt:
 
user17382064
  function getWrapper(cover) {
    const index = players.findIndex(
      function isCover(player) {
        player.cover === cover
      }
    );
    return players[index].wrapper;
  }
 
user17382064
It’s telling me there’s an error: jsfiddle.net/u50397mL
 
1:54 PM
Is there a way to define the body of a script block when creating the script element via javascript?

const header = document.getElementsByTagName('head')[0];
const script = document.createElement('script');
script.type = 'text/javascript';
script.body = function () { /* do something */ };
header.appendChild(script);
(second to last line i'm looking to see if possible)
innerHTML?
 
And also you can create another element with data and append to script
Vlaz brother is changing aria-hidden not allowed in font awesome 6
 
3:06 PM
@Rana Dunno. Never used either the attribute or font awesome 6
 
3:21 PM
thanks @VLAZ
 
 
6 hours later…
9:41 PM
🚽
 
 
1 hour later…
10:48 PM
posted on December 08, 2021 by Ben Mason

Hi everyone! We've just released Chrome Beta 97 (97.0.4692.45) for Android: it's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Ben Mason Google Chrome

 
11:15 PM
Anyone know how to make this listener passive?
<div
  onWheel={(e) => {
    e.preventDefault();
    e.stopPropagation();
  }}
>
</div>
 
9
Q: How to add passive event listeners in React?

UtkarshPramodGuptaTo set event listener say, onKeyPress listener on some react input element, we do something like this: <SomeInputElement onKeyPress={this.someListener.bind(this)}> Now, what should I do to make my someListener passive?

but you'll have to convert to hooks if you use hooks
 
11:54 PM
posted on December 08, 2021 by Cole Brown

 The Beta channel is being updated to 97.0.4692.44 (Platform version: 14324.33.0) for most Chrome OS devices. If you find new issues, please let us know by visiting our forum or filing a bug. Interested in switching channels Find out how. You can submit feedback using ‘Report an issue...’ in the Chrome menu (3 vertical dots in the upper right corner of the bro

 

« first day (4071 days earlier)      last day (862 days later) »