Corrected notification duration to timeout, state restored to nomal

This commit is contained in:
Toby Li
2018-11-30 15:28:29 +00:00
parent c34029e6e0
commit c83d99b2fe
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -420,7 +420,7 @@ declare namespace fin {
/**
* The timeout for displaying a notification.Can be in milliseconds or "never".
*/
duration?: number | "never";
timeout?: number | "never";
/**
* The url of the notification
*/
@@ -804,9 +804,9 @@ declare namespace fin {
*/
getSnapshot(callback?: (base64Snapshot: string) => void, errorCallback?: (reason: string) => void): void;
/**
* Gets the current state ("minimized", "maximized", or "restored") of the window.
* Gets the current state ("minimized", "maximized", or "normal") of the window.
*/
getState(callback?: (state: "minimized" | "maximized" | "restored") => void, errorCallback?: (reason: string) => void): void;
getState(callback?: (state: "minimized" | "maximized" | "normal") => void, errorCallback?: (reason: string) => void): void;
/**
* Returns the zoom level of the window.
*/
+1 -1
View File
@@ -207,7 +207,7 @@ function test_notification() {
notification.close();
// sendMessage
notification = new fin.desktop.Notification({
duration: 10,
timeout: 10,
url: "http://localhost:5000/Account/Register",
message: "Hello",
onShow: () => { },