1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

improve types

This commit is contained in:
Michael Telatynski
2020-08-05 11:22:43 +01:00
parent 764b94c7ae
commit fca48c0426

View File

@@ -209,7 +209,7 @@ export const Notifier = {
return plaf && plaf.supportsNotifications(); return plaf && plaf.supportsNotifications();
}, },
setEnabled: function(enable: boolean, callback: () => void) { setEnabled: function(enable: boolean, callback?: () => void) {
const plaf = PlatformPeg.get(); const plaf = PlatformPeg.get();
if (!plaf) return; if (!plaf) return;