File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
src/components/slack_login Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 69
69
</template >
70
70
71
71
<script setup lang="ts">
72
+ // @ts-ignore
72
73
import localforage from " localforage" ;
73
74
import { useStore } from " vuex" ;
74
75
import { ref } from " vue" ;
@@ -79,13 +80,16 @@ let isAuthenticating = ref(false);
79
80
let showLogin = ref (false );
80
81
const errorMessage = ref (" " );
81
82
82
- ipcRenderer .on (" tokenReceived" , (event , data ) => {
83
- return saveToLocalForage (" slackWebhookURL" , data .incoming_webhook .url );
84
- });
85
- ipcRenderer .on (" slackUser" , (event , user ) => {
83
+ ipcRenderer .on (
84
+ " tokenReceived" ,
85
+ (event : Event , data : { incoming_webhook: { url: string } }) => {
86
+ return saveToLocalForage (" slackWebhookURL" , data .incoming_webhook .url );
87
+ }
88
+ );
89
+ ipcRenderer .on (" slackUser" , (event : Event , user : string ) => {
86
90
return saveToLocalForage (" slackUser" , user );
87
91
});
88
- ipcRenderer .on (" slackError" , (event , err ) => {
92
+ ipcRenderer .on (" slackError" , (event : Event , err : Error ) => {
89
93
printErrorMessage ();
90
94
});
91
95
You can’t perform that action at this time.
0 commit comments