From f1b69c19394159e8749bdaac5d85c5f0afd25363 Mon Sep 17 00:00:00 2001 From: k-tamura Date: Wed, 16 May 2018 21:46:25 +0900 Subject: [PATCH] Remove first loading flag --- .../t246osslab/easybuggy4sb/controller/IndexController.java | 4 ---- src/main/resources/templates/index.html | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/org/t246osslab/easybuggy4sb/controller/IndexController.java b/src/main/java/org/t246osslab/easybuggy4sb/controller/IndexController.java index 0785496..03fe17a 100644 --- a/src/main/java/org/t246osslab/easybuggy4sb/controller/IndexController.java +++ b/src/main/java/org/t246osslab/easybuggy4sb/controller/IndexController.java @@ -11,8 +11,6 @@ @Controller public class IndexController extends AbstractController { - private boolean isFirstLoad = true; - @RequestMapping(value = "/") public ModelAndView init(HttpSession ses, ModelAndView mav, Locale locale) { ses.removeAttribute("dlpinit"); @@ -33,8 +31,6 @@ public ModelAndView init(HttpSession ses, ModelAndView mav, Locale locale) { String mode = System.getProperty("easybuggy.mode"); mav.addObject("isOnlyVulnerabilities", mode != null && mode.equalsIgnoreCase("only-vulnerabilities")); - mav.addObject("isFirstLoad", isFirstLoad); - isFirstLoad = false; return mav; } } \ No newline at end of file diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 504d1db..343413b 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -6,8 +6,7 @@
- - +