summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-07-18 01:47:38 +0900
committerGitHub <noreply@github.com>2018-07-18 01:47:38 +0900
commiteb4aac39023f01d4fc5c29e6e287b20ff0c80214 (patch)
tree76aa01a473ff8ce93b7788a55d6e00dfc0815c56 /src
parent4.22.1 (diff)
parentUpdate calendar.vue (diff)
downloadmisskey-eb4aac39023f01d4fc5c29e6e287b20ff0c80214.tar.gz
misskey-eb4aac39023f01d4fc5c29e6e287b20ff0c80214.tar.bz2
misskey-eb4aac39023f01d4fc5c29e6e287b20ff0c80214.zip
Merge pull request #1918 from acid-chicken/master
Minify
Diffstat (limited to 'src')
-rw-r--r--src/client/app/desktop/views/components/calendar.vue5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/app/desktop/views/components/calendar.vue b/src/client/app/desktop/views/components/calendar.vue
index 3b0330cf61..111699618e 100644
--- a/src/client/app/desktop/views/components/calendar.vue
+++ b/src/client/app/desktop/views/components/calendar.vue
@@ -35,10 +35,7 @@ import Vue from 'vue';
const eachMonthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
function isLeapYear(year) {
- return (year % 400 == 0) ? true :
- (year % 100 == 0) ? false :
- (year % 4 == 0) ? true :
- false;
+ return !(year % (year % 25 ? 4 : 16));
}
export default Vue.extend({