File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments