File tree Expand file tree Collapse file tree 4 files changed +10
-14
lines changed
Expand file tree Collapse file tree 4 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 1313 "sizes" : " 512x512"
1414 }
1515 ],
16- "start_url" : " / " ,
16+ "start_url" : " " ,
1717 "background_color" : " #212121" ,
1818 "display" : " standalone" ,
19- "scope" : " / " ,
19+ "scope" : " " ,
2020 "theme_color" : " #212121"
2121 }
Original file line number Diff line number Diff line change 66 <v-list class =" pa-0" >
77 <v-list-tile avatar >
88 <v-list-tile-avatar >
9- <img : src =" `${root}/ assets/images/icons/favicon.ico` " >
9+ <img src =" assets/images/icons/favicon.ico" >
1010 </v-list-tile-avatar >
1111
1212 <v-list-tile-content >
@@ -242,10 +242,6 @@ export default class STApp extends Vue {
242242 private oldSavegameVersion: boolean = false ;
243243 private errorMessage: string = " " ;
244244
245- private get root() {
246- return process .env .ROOT ;
247- }
248-
249245 /**
250246 * Called when the component is ready to be used, but has no HTMl elements yet.
251247 * Useful for non-visual initialization.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ if ('serviceWorker' in navigator) {
33 if ( process . env . SERVICE_WORKER === "true" ) {
44 // Use the window load event to keep the page load performant
55 window . addEventListener ( 'load' , ( ) => {
6- navigator . serviceWorker . register ( process . env . ROOT + '/ serviceworker.js') . then ( registration => {
6+ navigator . serviceWorker . register ( ' serviceworker.js') . then ( registration => {
77 console . log ( 'SW registered: ' , registration ) ;
88 } ) . catch ( registrationError => {
99 console . log ( 'SW registration failed: ' , registrationError ) ;
Original file line number Diff line number Diff line change @@ -49,17 +49,17 @@ export default class TreeDesignerScene extends Phaser.Scene implements ISaveable
4949 preload ( ) {
5050 this . _application = this . game as SlowTreeGame ;
5151 // Test images
52- this . load . image ( "phaser" , process . env . ROOT + "assets/images/phaser.png" ) ;
53- this . load . image ( "marker" , process . env . ROOT + "assets/images/marker.png" ) ;
52+ this . load . image ( "phaser" , "assets/images/phaser.png" ) ;
53+ this . load . image ( "marker" , "assets/images/marker.png" ) ;
5454 // Tree images
5555 for ( const treeType of TreeType . ALL_TREES ) {
56- this . load . image ( `tree/${ treeType . id } /trunk` , `${ process . env . ROOT } assets/images/tree/${ treeType . id } /trunk.png` ) ;
57- this . load . image ( `tree/${ treeType . id } /branch` , `${ process . env . ROOT } assets/images/tree/${ treeType . id } /branch.png` ) ;
58- this . load . image ( `tree/${ treeType . id } /leaves` , `${ process . env . ROOT } assets/images/tree/${ treeType . id } /leaves.png` ) ;
56+ this . load . image ( `tree/${ treeType . id } /trunk` , `assets/images/tree/${ treeType . id } /trunk.png` ) ;
57+ this . load . image ( `tree/${ treeType . id } /branch` , `assets/images/tree/${ treeType . id } /branch.png` ) ;
58+ this . load . image ( `tree/${ treeType . id } /leaves` , `assets/images/tree/${ treeType . id } /leaves.png` ) ;
5959 }
6060 // Backgrounds
6161 for ( const background of BackgroundSkin . ALL_BACKGROUNDS ) {
62- this . load . image ( background . id , process . env . ROOT + background . path ) ;
62+ this . load . image ( background . id , background . path ) ;
6363 }
6464 }
6565
You can’t perform that action at this time.
0 commit comments