Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as imageIDB from 'image_idb';
- export const getBackdrops = () => {
- $('.title.backdrop-pending[data-image-src]').each((i, title) => {
- $(title).attr('data-image-key', `title-${$(title).data('title-id')}-backdrop`)
- });
- imageIDB.getBackdrops();
- }
- export const getPosters = () => {
- $('img.title-poster[data-image-src][src=""]').each((i, poster) => {
- let title = $(poster).closest('.title');
- $(poster).attr('data-image-key', `title-${$(title).data('title-id')}-poster`)
- });
- imageIDB.getPosters();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement