diff --git a/app/js/platform/end.js b/app/js/platform/end.js index 41ef4583..ac852838 100644 --- a/app/js/platform/end.js +++ b/app/js/platform/end.js @@ -171,10 +171,10 @@ function opendev(){ */ } -var webview = document.getElementById('webview'); +var webviewDom = document.getElementById('webview'); const { shell } = require('electron'); -webview.addEventListener('new-window', function(e) { +webviewDom.addEventListener('new-window', function(e) { shell.openExternal(e.url); }); \ No newline at end of file diff --git a/app/js/ui/layout.js b/app/js/ui/layout.js index 10209ae3..3af085f5 100644 --- a/app/js/ui/layout.js +++ b/app/js/ui/layout.js @@ -128,7 +128,7 @@ function parseColumn() { }else{ var css=""; } - var html =webview("https://tweetdeck.twitter.com",key,insert,icnsert,css); + var html =webviewParse("https://tweetdeck.twitter.com",key,insert,icnsert,css); $("#timeline-container").append(html); }else{ var width = localStorage.getItem("width"); @@ -421,7 +421,7 @@ function coloradd(key,bg,txt){ } } //禁断のTwitter -function webview(url,key,insert,icnsert,css){ +function webviewParse(url,key,insert,icnsert,css){ var html = '
Let's make it native!