mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
remove reject of the headets
This commit is contained in:
@@ -86,6 +86,7 @@ export class NewPublicationPage implements OnInit {
|
||||
imgResultBeforeCompress: string;
|
||||
imgResultAfterCompress: string;
|
||||
convertBlobToBase64Worker;
|
||||
intent: any;
|
||||
|
||||
constructor(
|
||||
private modalController: ModalController,
|
||||
@@ -107,12 +108,17 @@ export class NewPublicationPage implements OnInit {
|
||||
this.folderId = this.navParams.get('folderId');
|
||||
this.publication = this.navParams.get('publication');
|
||||
this.publicationTitle = 'Nova Publicação';
|
||||
this.intent = this.navParams.get('intent');
|
||||
|
||||
this.convertBlobToBase64Worker = new Worker(new URL('./convertBlobToBase64.worker.js', import.meta.url));
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
if(this.intent) {
|
||||
this.capturedImage = 'data:image/jpeg;base64,'+this.intent;
|
||||
}
|
||||
|
||||
this.setTitle();
|
||||
Filesystem.mkdir({
|
||||
path: IMAGE_DIR,
|
||||
|
||||
Reference in New Issue
Block a user