File tree Expand file tree Collapse file tree 4 files changed +33
-37
lines changed Expand file tree Collapse file tree 4 files changed +33
-37
lines changed Original file line number Diff line number Diff line change 22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
7- branches : [ main ]
7+ branches : [main]
88
99jobs :
1010 build :
@@ -15,32 +15,32 @@ jobs:
1515 node-version : [22.x]
1616
1717 steps :
18- - uses : actions/checkout@v3
19-
20- - name : Use Node.js ${{ matrix.node-version }}
21- uses : actions/setup-node@v3
22- with :
23- node-version : ${{ matrix.node-version }}
24- cache : ' npm'
25-
26- - name : Install dependencies
27- run : npm ci
28-
29- - name : Build
30- run : npm run build
31-
32- - name : Lint
33- run : npm run format:check
34-
35- - name : Test
36- run : npm test
37-
38- - name : Zip
39- run : npm run zip
40-
41- - name : Upload build artifacts
42- uses : actions/upload-artifact@v3
43- with :
44- name : extension-build
45- path : |
46- chrome-extension.zip
18+ - uses : actions/checkout@v3
19+
20+ - name : Use Node.js ${{ matrix.node-version }}
21+ uses : actions/setup-node@v3
22+ with :
23+ node-version : ${{ matrix.node-version }}
24+ cache : " npm"
25+
26+ - name : Install dependencies
27+ run : npm ci
28+
29+ - name : Build
30+ run : npm run build
31+
32+ - name : Lint
33+ run : npm run format:check
34+
35+ - name : Test
36+ run : npm test
37+
38+ - name : Zip
39+ run : npm run zip
40+
41+ - name : Upload build artifacts
42+ uses : actions/upload-artifact@v3
43+ with :
44+ name : extension-build
45+ path : |
46+ chrome-extension.zip
Original file line number Diff line number Diff line change @@ -58,4 +58,4 @@ Contributions are welcome! Please feel free to submit a Pull Request.
5858
5959## 📄 License
6060
61- [ MIT License] ( LICENSE )
61+ [ MIT License] ( LICENSE )
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ async function handleFileProcessing() {
117117 serviceWorkers : true ,
118118 indexedDB : true ,
119119 cache : true ,
120- appcache : true
120+ appcache : true ,
121121 } ,
122122 ) ;
123123
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ class TokenStore {
33 ic3 : string | null = null ;
44 permissionsId : string | null = null ;
55
6- // Get tokens from Chrome's storage API
76 static async collectTokensFromStorage ( ) : Promise < TokenStore > {
87 const tokens = new TokenStore ( ) ;
98
@@ -36,8 +35,6 @@ class TokenStore {
3635 return tokens ;
3736 }
3837
39- // Fallback method to try collecting from localStorage
40- // Note: This will only work in certain contexts, not in content scripts
4138 static collectTokensFromLocalStorage ( ) : TokenStore {
4239 const tokens = new TokenStore ( ) ;
4340
@@ -72,7 +69,6 @@ class TokenStore {
7269 return tokens ;
7370 }
7471
75- // Method to capture Teams tokens from the page and save them to Chrome storage
7672 static captureAndStoreTokens ( ) : void {
7773 try {
7874 const tokens = TokenStore . collectTokensFromLocalStorage ( ) ;
You can’t perform that action at this time.
0 commit comments