From eedd004685255630439ca934cc6e0a04e62674d7 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 31 Mar 2009 19:58:09 +0000 Subject: IFrame は除外するようにしてみた git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@31758 d0d07461-0603-4401-acd4-de1884942a52 --- auto-focus-frame.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'auto-focus-frame.js') diff --git a/auto-focus-frame.js b/auto-focus-frame.js index 9cf0bbb..2149d3e 100644 --- a/auto-focus-frame.js +++ b/auto-focus-frame.js @@ -38,7 +38,7 @@ let PLUGIN_INFO = Auto focus frame Automatically focus to largest frame. 最も大きなフレームに自動的にフォーカスする。 - 1.0.2 + 1.0.3 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -69,6 +69,8 @@ let PLUGIN_INFO = let [maxSize, maxFrame] = [-1, content.frames[0]]; for (let frame in util.Array.iterator(content.frames)) { try { + if (!(frame.frameElement instanceof HTMLFrameElement)) + continue; if (frame.scrollMaxX <= 0 && frame.scrollMaxY <= 0) continue; let size = frame.innerWidth * frame.innerHeight; -- cgit v1.2.3