Skip to content

Commit

Permalink
fix: KaraxとTwitterのJSライブラリが干渉しているのでJSライブラリを無効化 #204 (#205)
Browse files Browse the repository at this point in the history
* fix: KaraxがエラーになっているためTwitterのJSライブラリのロードをやめる #204

* chore: Karaxのバージョンを上げる気はないのでバージョン固定 #204
  • Loading branch information
jiro4989 authored Apr 7, 2021
1 parent a46961b commit 08ac6ee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion websh_front/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.8.0/css/bulma.min.css">
<link rel="icon" href="/favicon.ico">
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<!--
#204 Karaxと干渉しているため
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
-->
<style>
textarea {
font-family: Consolas, 'Courier New', Courier, Monaco, monospace;
Expand Down
6 changes: 4 additions & 2 deletions websh_front/src/index.nim
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,10 @@ proc createDom(): VNode =
button(class="button is-primary", onclick = sendShellButtonOnClick):
text "Run (Ctrl + Enter)"
a(href = &"""https://twitter.com/intent/tweet?hashtags={encodeUrl($hashTag, false)}&text={encodeUrl($inputShell, false)}&ref_src=twsrc%5Etfw""",
class = "button twitter-share-button is-link",
`data-show-count` = "false"):
# #204 Karaxと干渉しているため
# class = "button twitter-share-button is-link",
# `data-show-count` = "false"):
class = "button is-link"):
text "Tweet"
tdiv(class = "select"):
select:
Expand Down
2 changes: 1 addition & 1 deletion websh_front/websh_front.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ backend = "js"
# Dependencies

requires "nim >= 1.4.0"
requires "karax >= 1.1.3"
requires "karax == 1.1.3"

0 comments on commit 08ac6ee

Please sign in to comment.