Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xland committed Dec 16, 2023
1 parent 0339647 commit c9f6c67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "calendar",
"version": "1.0.0",
"version": "1.0.1",
"description": "A easy to use calendar desktop software",
"main": "main.js",
"scripts": {
Expand All @@ -22,4 +22,4 @@
"fs-extra": "^11.1.1",
"html-minifier-terser": "^7.2.0"
}
}
}
6 changes: 3 additions & 3 deletions render/RecentJob.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import { dataSetting } from "./DataSetting";
export default function () {
let timeOutId;
let initAlert = (id: string, startTime: number) => {
clearTimeout(timeOutId);
let now = Date.now();
let beforeSpan = dataSetting.setting.AlertBefore * 60000;
if (startTime - now - beforeSpan < 2000) {
window.open(`/IndexAlert.html?id=${id}`, "_blank", `{"title": "日程提醒" }`);
Helper.$id("ModalMask").style.display = "block";
// window.open(`/IndexAlert.html?id=${id}`, "_blank", `{"title": "日程提醒" }`);
// Helper.$id("ModalMask").style.display = "block";
return false;
}
clearTimeout(timeOutId);
timeOutId = setTimeout(async () => {
window.open(`/IndexAlert.html?id=${id}`, "_blank", `{"title": "日程提醒" }`);
Helper.$id("ModalMask").style.display = "block";
Expand Down

0 comments on commit c9f6c67

Please sign in to comment.