Skip to content

Commit

Permalink
Merge pull request #124 from AN0NCER/develop
Browse files Browse the repository at this point in the history
fix bug load anime
  • Loading branch information
AN0NCER authored Oct 11, 2024
2 parents db495c8 + fb76edf commit 7eeedcf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
<link rel="apple-touch-icon" sizes="120x120" href="./images/icons/logo-x192-o.png" />
<link rel="apple-touch-icon" sizes="152x152" href="./images/icons/logo-x192-o.png" />
<link rel="stylesheet" href="/style/css/main.css">

<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="/style/css/min/swiper-bundle.min.css">
<link rel="stylesheet" href="/style/css/index.css">
<link rel="manifest" href="/images/icons/manifest-o.json">
Expand Down
8 changes: 5 additions & 3 deletions javascript/pages/index/mod_animes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { GraphQl } from "../../modules/ShikiAPI.js";
import { Sleep } from "../../modules/functions.js";

const _limitAnime = 8;
const _exclude_ids = [56572, 56560, 56484, 56481, 56575, 56308, 53514, 57131, 57106];
const _exclude_ids = [56572, 56560, 56484, 56481, 56575, 56308, 53514, 57131, 57106, 59387, 58379, 59883, 54398, 58631];

let _loadedAnime = false;
let _loadedUpdates = false;
Expand All @@ -21,8 +21,10 @@ export function LoadAnimeShikimori({ status = 'ongoing', limit = _limitAnime, ge
season: `"${new Date().getFullYear() - take}_${new Date().getFullYear()}"`
}

for (let i = 0; i < limit; i++) {
$(`.section-anime`).append(ACard.LoadV2({id: i}));
if(!reflex){
for (let i = 0; i < limit; i++) {
$(`.section-anime`).append(ACard.LoadV2({id: i}));
}
}

GraphQl.animes(arg, async (response) => {
Expand Down
2 changes: 1 addition & 1 deletion sw.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const version = '2.5.3';
const hash = 'd3bbd';
const hash = '922c2';
const cacheName = `pwa-tunime-${hash}-v${version}`;
const appShellFilesToCache = [
// Директория: /images/genres
Expand Down

0 comments on commit 7eeedcf

Please sign in to comment.