Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8810cd6c authored by Paula's avatar Paula
Browse files

move resoureces out of js folder

parent 65502ec9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ The project is available at `http://localhost:3000/`
# Installation

Drop the files used to flash the device in the corresponding folder in  `static/assets/sources`
And **overwrite the .json** file of your device with the correct file name
And **overwrite the .json** `static/resources` file of your device with the correct file name

# Development information

+1 −1
Original line number Diff line number Diff line
@@ -267,7 +267,7 @@ export class Controller {
        } else {
            try {
                this.model = productName.toLowerCase().replace(/[ |_]/g, '');
                this.resources = await (await fetch(`js/resources/${this.model}.json`)).json() || {};
                this.resources = await (await fetch(`resources/${this.model}.json`)).json() || {};
            } catch (e) {
                throw Error('model not supported');
                this.resources = {};
Loading