Skip to content

Commit

Permalink
Fix twitter urls
Browse files Browse the repository at this point in the history
  • Loading branch information
turtlesoupy committed May 9, 2020
1 parent cb421ab commit c37a195
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions cpu_deploy_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ channels:
- defaults
dependencies:
- beautifulsoup4>=4.8.2
- cryptography>=2.9.2
- google-auth>=1.14.1
- grpcio-tools>=1.16.1
- numpy>=1.18.1
Expand Down
2 changes: 1 addition & 1 deletion deploy/website/website-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
run: website
spec:
containers:
- image: gcr.io/this-word-does-not-exist/website:v24
- image: gcr.io/this-word-does-not-exist/website:v26
imagePullPolicy: IfNotPresent
name: website
ports:
Expand Down
1 change: 1 addition & 0 deletions website/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
aiohttp>=3.6.2
aiohttp-jinja2>=1.1.2
cryptography>=2.9.2
grpcio>=1.23.0
grpcio-tools>=1.16.1
grpclib>=0.3.1
2 changes: 1 addition & 1 deletion website/static/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion website/static_src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'whatwg-fetch'

function syncTweetURL() {
let tweetEl = document.getElementById("tweet-a");
tweetEl.href = `https://twitter.com/intent/tweet?url=${encodeURI(window.location.href)}`;
tweetEl.href = `https://twitter.com/intent/tweet?url=${encodeURIComponent(window.location.href)}`;
}
function syncToWord(word, permalink) {
let posEl = document.getElementById("definition-pos");
Expand Down

0 comments on commit c37a195

Please sign in to comment.