Commit e85f3d0 1 parent dd1123e commit e85f3d0 Copy full SHA for e85f3d0
File tree 4 files changed +20
-2
lines changed
app/MeetingStatusIndicator/app/src/main/java/co/thkp/meetingstatusindicator
4 files changed +20
-2
lines changed Original file line number Diff line number Diff line change
1
+ package co.thkp.meetingstatusindicator
2
+
Original file line number Diff line number Diff line change
1
+ package co.thkp.meetingstatusindicator.data
2
+
3
+ class DatabaseProvider {
4
+ }
Original file line number Diff line number Diff line change 5
5
< body >
6
6
< input type ="text " id ="endpoint ">
7
7
< button id ="setEndpoint "> Set Endpoint</ button >
8
+ < button id ="reset "> Reset Tabs</ button >
8
9
< script src ="popup.js "> </ script >
9
10
</ body >
10
- </ html >
11
+ </ html >
12
+
Original file line number Diff line number Diff line change 1
1
let setEndpoint = document . getElementById ( 'setEndpoint' ) ;
2
2
let endpointElement = document . getElementById ( 'endpoint' ) ;
3
+ let resetTabs = document . getElementById ( 'reset' ) ;
4
+
3
5
4
6
setEndpoint . onclick = ( ) => {
5
7
let endpoint = endpointElement . value ;
6
8
chrome . storage . local . set ( { endpoint : endpoint } ) ;
7
9
} ;
8
10
11
+ resetTabs . onclick = ( ) => {
12
+ chrome . storage . local . get ( null , ( data ) => {
13
+ if ( data && data . hangouts ) {
14
+ chrome . storage . local . set ( { hangouts : [ ] } ) ;
15
+ }
16
+ } )
17
+ }
18
+
9
19
chrome . storage . local . get ( null , ( data ) => {
10
20
if ( data && data . endpoint ) {
11
- endpointElement . innerText = data . endpoint ;
21
+ endpointElement . value = data . endpoint ;
12
22
}
13
23
} )
You can’t perform that action at this time.
0 commit comments