From 5b3dd86a5eff91a28935ab5b0145f336ee8e9600 Mon Sep 17 00:00:00 2001 From: Cutls Date: Thu, 21 Mar 2019 14:21:02 +0900 Subject: [PATCH] Webview some fixed --- app/js/platform/end.js | 4 ++-- app/js/ui/layout.js | 4 ++-- app/view/make/index.sample.html | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) 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!