File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 node-version : 20
2222
2323 - name : " Update Manifest Version"
24- uses : cssnr/update-json-value-action@v1
2524 if : ${{ github.event_name == 'release' }}
25+ uses : cssnr/update-json-value-action@v1
2626
2727 - name : " Build All"
2828 run : |
3636 path : web-ext-artifacts/
3737
3838 - name : " Upload to Release"
39+ if : ${{ github.event_name == 'release' }}
3940 uses : svenstaro/upload-release-action@v2
4041 with :
4142 repo_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -77,12 +77,13 @@ function extractSelection() {
7777 * @param {HTMLAnchorElement } element
7878 */
7979function pushElement ( array , element ) {
80+ // console.debug('element:', element)
8081 try {
8182 const data = {
8283 href : decodeURI ( element . href ) ,
83- text : element . textContent ,
84+ text : element . textContent ?. trim ( ) ,
8485 title : element . title ,
85- label : element . ariaLabel ,
86+ label : element . ariaLabel || '' ,
8687 rel : element . rel ,
8788 target : element . target ,
8889 origin : element . origin ,
Original file line number Diff line number Diff line change @@ -218,11 +218,11 @@ function extractURLs(text) {
218218 const match = urlmatcharr [ 0 ]
219219 const url = new URL ( match )
220220 const data = {
221- text : null ,
222- title : null ,
223- label : null ,
224- target : null ,
225- rel : null ,
221+ text : '' ,
222+ title : '' ,
223+ label : '' ,
224+ target : '' ,
225+ rel : '' ,
226226 href : url . href ,
227227 origin : url . origin ,
228228 }
You can’t perform that action at this time.
0 commit comments