mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
Remove synchro to production
This commit is contained in:
@@ -1,15 +1,18 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
|
import { AlertController, Platform } from '@ionic/angular';
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class WebNotificationPopupService {
|
export class WebNotificationPopupService {
|
||||||
|
|
||||||
constructor() { }
|
constructor( private platform: Platform) { }
|
||||||
|
|
||||||
|
|
||||||
askNotificationPermission() {
|
askNotificationPermission() {
|
||||||
|
|
||||||
|
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {}
|
||||||
|
else {return false}
|
||||||
|
|
||||||
// function to actually ask the permissions
|
// function to actually ask the permissions
|
||||||
function handlePermission(permission) {}
|
function handlePermission(permission) {}
|
||||||
|
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ class SynchroService {
|
|||||||
if(window['platform'].is('desktop') || this.platform.is('mobileweb')) {}
|
if(window['platform'].is('desktop') || this.platform.is('mobileweb')) {}
|
||||||
else return false
|
else return false
|
||||||
|
|
||||||
// if(environment.production) return false
|
if(environment.production) return false
|
||||||
|
|
||||||
this.callBacks.forEach((e)=> {
|
this.callBacks.forEach((e)=> {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user