aboutsummaryrefslogtreecommitdiffstats
path: root/auto-focus-frame.js
diff options
context:
space:
mode:
authoranekos2009-03-31 19:58:09 +0000
committeranekos2009-03-31 19:58:09 +0000
commiteedd004685255630439ca934cc6e0a04e62674d7 (patch)
tree7bcb0f3f004b5e008fe3c67727e1144c825c4426 /auto-focus-frame.js
parent156c2a71d8e2791d2b27fbd11275b7fe8a078068 (diff)
downloadvimperator-plugins-eedd004685255630439ca934cc6e0a04e62674d7.tar.bz2
IFrame は除外するようにしてみた
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@31758 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'auto-focus-frame.js')
-rw-r--r--auto-focus-frame.js4
1 files changed, 3 insertions, 1 deletions
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 =
<name>Auto focus frame</name>
<description>Automatically focus to largest frame.</description>
<description lang="ja">最も大きなフレームに自動的にフォーカスする。</description>
- <version>1.0.2</version>
+ <version>1.0.3</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<license>new BSD License (Please read the source code comments of this plugin)</license>
<license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license>
@@ -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;