diff --git a/src/const.json b/src/const.json index e39db6e90d2a42e026f4ec544c13797269db9f51..1032ed538f2130804da8d1733b6658dd90950367 100644 --- a/src/const.json +++ b/src/const.json @@ -1,5 +1,5 @@ { "themeColor": "#87bb35", "themeColorForeground": "#fff", - "idea": ["#f13049"] + "idea": ["#f13049", "#f43636"] } diff --git a/src/web/app/boot.js b/src/web/app/boot.js index cc9235757929b19d77f6872a361118e2dcf6c956..426c7be40e9e6273d9493c8bd09e6e97c23f318b 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -139,11 +139,7 @@ function fetchme(token, cb) { me.data ? done() : init(); }); }, () => { - riot.mount(document.body.appendChild(document.createElement('mk-core-error')), { - retry: () => { - fetchme(token, cb); - } - }); + riot.mount(document.body.appendChild(document.createElement('mk-error'))); }); function done() { diff --git a/src/web/app/common/tags/core-error.tag b/src/web/app/common/tags/error.tag similarity index 87% rename from src/web/app/common/tags/core-error.tag rename to src/web/app/common/tags/error.tag index dd6f994ea2195423fa100c973f2a5fd03f93556e..42d7642827c0495f34f607fc89124e0e55be3ccc 100644 --- a/src/web/app/common/tags/core-error.tag +++ b/src/web/app/common/tags/error.tag @@ -1,4 +1,4 @@ -<mk-core-error> +<mk-error> <!--i: i.fa.fa-times-circle--> <img src="/assets/error.jpg" alt=""/> <h1>サーãƒãƒ¼ã«æŽ¥ç¶šã§ãã¾ã›ã‚“</h1> @@ -7,7 +7,7 @@ <style> :scope position fixed - z-index 16385 + z-index 100000 top 0 left 0 width 100% @@ -26,9 +26,6 @@ height 200px margin 64px auto 0 auto pointer-events none - -ms-user-select none - -moz-user-select none - -webkit-user-select none user-select none > h1 @@ -57,8 +54,7 @@ </style> <script> this.retry = () => { - this.unmount(); - this.opts.retry(); + location.reload() } </script> -</mk-core-error> +</mk-error> diff --git a/src/web/app/common/tags/index.js b/src/web/app/common/tags/index.js index dfec57147898587b5ca06e9793f0ca1fbe916231..5dc4ef4546ad38e98dc6862f1afb72934e7e2328 100644 --- a/src/web/app/common/tags/index.js +++ b/src/web/app/common/tags/index.js @@ -1,4 +1,4 @@ -require('./core-error.tag'); +require('./error.tag'); require('./url.tag'); require('./url-preview.tag'); require('./time.tag');