From 844d4ae0f81dd63d2b577a2b1a0c2220c04c94b1 Mon Sep 17 00:00:00 2001 From: Mashiro Date: Fri, 14 Dec 2018 00:21:35 +0800 Subject: [PATCH] Fix issue #20 --- js/sakura-app.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/js/sakura-app.js b/js/sakura-app.js index 00b25d5..6605b67 100644 --- a/js/sakura-app.js +++ b/js/sakura-app.js @@ -1421,11 +1421,13 @@ var home = location.href, $('.focusinfo').css({ "top": "-999px" }); - for (var i = 0; i < ap.length; i++) { - try { - ap[i].destroy() - } catch (e) {} - } + try { + for (var i = 0; i < ap.length; i++) { + try { + ap[i].destroy() + } catch (e) {} + } + } catch (e) {} try { hermitInit() } catch (e) {}