From 344d64c65d3098611eaf2372f74e3284076047ff Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 23 Jun 2010 07:17:44 +0000 Subject: body なしフレームがアル場合にエラーになるんだ。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37858 d0d07461-0603-4401-acd4-de1884942a52 --- feedSomeKeys_3.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'feedSomeKeys_3.js') diff --git a/feedSomeKeys_3.js b/feedSomeKeys_3.js index 18bf2b4..05b2cd4 100755 --- a/feedSomeKeys_3.js +++ b/feedSomeKeys_3.js @@ -39,7 +39,7 @@ let PLUGIN_INFO = feedSomeKeys 3 feed some defined key events into the Web content キーイベントをWebコンテンツ側に送る - 1.8.1 + 1.8.2 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -79,7 +79,7 @@ lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/detail' u // }}} // INFO {{{ let INFO = <> - :lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/detail' u - function getFrames () { function bodyCheck (content) - (content.document.body.localName.toLowerCase() === 'body'); + (content.document && content.document.body && content.document.body.localName.toLowerCase() === 'body'); function get (content) (bodyCheck(content) && result.push(content), Array.slice(content.frames).forEach(get)); -- cgit v1.2.3