i want to check if the clipboard content is empty so if it is, i show an alert to the user saying the clipboard is empty else i assign the clipboard content to the variable content
this is what i have tried but it doesn't show the alert
public pastetoinput(){
    this.clipboard.paste().then(
        (resolve: string) => {
            if(resolve == "" || resolve == null){
                 alert("clipboard is empty");
            }else{
                 var content = resolve
            }
        },
        (reject: string) => {
            console.error('Error: ' + reject);
        }
    );
}
 
    