Skip to content

Commit

Permalink
just enter if cookie can not get or already get
Browse files Browse the repository at this point in the history
  • Loading branch information
lony2003 committed Jan 27, 2024
1 parent 0f2871f commit d30edb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# step6: upload artifacts
# - name: upload artifacts
# uses: actions/upload-artifact@v3
# with:
# name: ${{ matrix.os }}
# path: 'release/'
# step6: upload artifacts
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}
path: 'release/*/*-unpacked/resources/app.asar'
5 changes: 4 additions & 1 deletion electron/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ window.addEventListener('DOMContentLoaded', () => {

document.body.appendChild(informationDiv);

let allCount = 0;
let count = 0;
let cookieLength = 0;

Expand All @@ -95,10 +96,12 @@ window.addEventListener('DOMContentLoaded', () => {
count++;
}

allCount++;

console.log(cookieLength);
console.log(count);

if (count > 6) {
if (count > 6 || allCount >= 50) {
let urlWrapper = ipcRenderer.sendSync("get-wrapper-url") + "?login=1"
window.location.replace(urlWrapper);
}
Expand Down

0 comments on commit d30edb4

Please sign in to comment.