Skip to content

Commit 87545a4

Browse files
committed
- fix: location does not require a marker
1 parent 6ff4a27 commit 87545a4

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/modules/package/Package.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,16 @@ export class Package {
8383

8484
case AR_PATTERN:
8585
generatedHtml = MarkerModule.generatePatternHtml(this.assetType, this.assetParam, `assets/${this.assetName}`);
86-
this.addMarkerToProvider(provider, this.config.markerPatt);
86+
87+
if (!this.config.markerPatt) {
88+
throw new Error('Missing marker.patt file');
89+
}
90+
91+
provider.addFile('assets/marker.patt', this.config.markerPatt);
8792
break;
8893

8994
case AR_LOCATION:
9095
generatedHtml = LocationModule.generateHtml(this.assetType, this.assetParam, `assets/${this.assetName}`);
91-
this.addMarkerToProvider(provider, this.config.markerPatt);
9296
break;
9397

9498
case AR_NTF:
@@ -153,12 +157,4 @@ export class Package {
153157
throw new Error(`Unknown asset type: ${this.assetType}`);
154158
}
155159
}
156-
157-
addMarkerToProvider(provider, markerPatt) {
158-
if (!markerPatt) {
159-
throw new Error('Missing marker.patt file');
160-
}
161-
162-
provider.addFile('assets/marker.patt', markerPatt);
163-
}
164160
}

0 commit comments

Comments
 (0)