Skip to content
This repository was archived by the owner on Oct 5, 2024. It is now read-only.

Conversation

@say25
Copy link

@say25 say25 commented Apr 15, 2023

No description provided.

border: 1px solid #ccc;
seamless;
frameborder: 0;
scrolling: no;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to https://caniuse.com/ all these attributes are not supported by any browser any more

var dm = decimals + 1 || 3;
var sizes = ['bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
var i = Math.floor(Math.log(bytes) / Math.log(k));
// https://stackoverflow.com/questions/15900485/correct-way-to-convert-size-in-bytes-to-kb-mb-gb-in-javascript
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use HTTPS

if (navigator.platform.indexOf('Win') >= 0){
if (navigator.userAgent.indexOf("WOW64") === -1 && navigator.userAgent.indexOf("Win64") === -1 ){
function getPlatform() {
const { platform, userAgent } = navigator;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const buttons = document.querySelectorAll(container + ' .btn-' + pageType);
for (let i = 0; i < buttons.length; i++) {
buttons[i].addEventListener('click', () => {
if (!this.classList.contains('active')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you verified that this still works? IIRC, this does not exist in arrow functions, but it does in normal functions like how it was before. I don't really see a reason for changing all functions into arrow functions in the first place.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted the change, I guess there isn't a strong reason to really use arrow functions in most places

@tupaschoal tupaschoal requested a review from Broxzier May 6, 2023 10:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants