File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,7 +74,8 @@ const customOptions = {
7474 versionPath: " /api/v2/" ,
7575 cache: true ,
7676 timeout: 5 * 1000 , // 5s
77- cacheImages: true
77+ cacheImages: true ,
78+ swLocation: ' /'
7879}
7980const pokedex = await Pokedex .init (customOptions);
8081```
Original file line number Diff line number Diff line change 66 // var PJSW_DEBUG=1
77 </ script >
88 < script type ="module ">
9- //import {Pokedex} from "https://cdn.jsdelivr.net/gh/pokeapi/pokeapi-js-wrapper@beta /src/index.js"
9+ //import {Pokedex} from "https://cdn.jsdelivr.net/gh/pokeapi/pokeapi-js-wrapper/src/index.js"
1010 import { Pokedex } from "../src/index.js"
1111 const pokedex = await Pokedex . init ( ) ;
1212 const version = await pokedex . getVersionByName ( 1 )
Original file line number Diff line number Diff line change 44 < title > SW test</ title >
55 < script type ="module ">
66 import { Pokedex } from '../src/index.js'
7- const P = await Pokedex . init ( { cacheImages : true } ) ;
7+ const P = await Pokedex . init ( { cacheImages : true , swLocation : '/pokeapi-js-wrapper/test/' } ) ;
88 </ script >
99 </ head >
1010
You can’t perform that action at this time.
0 commit comments