Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public doSetUserId(): void {
// just for fun: showing usage of 'firebase.crashlytics' instead of 'firebaseCrashlytics'
firebase.crashlytics.setUserId("user#42");
alert({
title: "User id changed",
message: "Log a new message and check firebase console",
okButtonText: "Okay"
});
}
}
protected navigateToExample(exampleFullPath: string) {
try {
frame.topmost().navigate(TestPageMainViewModel.APP_NAME + "/" + exampleFullPath);
} catch (error) {
alert("Cannot find example: " + exampleFullPath);
}
}
this.printer.isSupported().then((supported) => {
console.log("supported? " + supported);
alert(supported ? "Yep!" : "Nope :(");
}, (error) => {
alert("Error: " + error);
.then((selection: ImageAsset[]) => {
const filePath = selection[0].android;
if (!filePath) {
alert('Failed to access the selected file.');
}
return filePath;
})
.catch((error) => console.warn(error));
export function alertWithNumberTapped(args) {
dialogs.alert(1);
}
getName() {
const pdf: any = frame.topmost().getViewById('pdf');
dialogs.alert(pdf.getFormField('Given Name Text Box') || 'Nada');
}
}, (err) => {
alert(err);
});
}
export function alertWithOptionsTapped(args) {
dialogs.alert({
title: "Alert Title",
message: "Hi there!",
okButtonText: "Close"
});
}
static showError(message) {
alert({
title: "GOChecklists",
message: message,
okButtonText: "OK"
});
}