diff --git a/README.md b/README.md index 0960196..065fbaf 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Manage commnunication between browser tabs. this js lib can perform several actions on browser tabs like : + - (*new) search and kill zombies tabs (enable onload by default) - append/rewrite/synchro node on all (other) tabs or a specific tab (and possibly on specific frame context) eventually with callback. - reload all tabs or a specific tab with specified url or tab 's current url - perform your custom actions on all tabs or specific tab @@ -14,7 +15,8 @@ ### Initialize $(document).ready(function() { - $bt.init(); + // $bt.zkillonload = false // disable zombkill cmd at statup + $bt.init(optionalCallback); } @@ -47,6 +49,9 @@ // reload specific browser tab to specific url $bt.reload(window.location.path+"?reloaded=1", '1449974562012'); + // search and kill zombies tabs + $bt.zombkill(callback, timeout); + // get browser tab list $bt.list; diff --git a/src/bt.js b/src/bt.js index 4deecc2..b1c2432 100644 --- a/src/bt.js +++ b/src/bt.js @@ -15,7 +15,8 @@ * * * $(document).ready(function() { - * $bt.init(); + * // $bt.zkillonload = false // disable zombkill cmd at statup + * $bt.init(optionalCallback); * }); * * @@ -49,7 +50,7 @@ * // reload specific browser tab to specific url * $bt.reload(window.location.path+"?reloaded=1", '1449974562012'); * - * // check and kill zombi tabs + * // check and kill zombies tabs * $bt.zombkill(); * * // get browser tab list