@bbn/bbn 1.0.273 → 1.0.274
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/fn/init.js +2 -0
- package/package.json +1 -1
package/dist/fn/init.js
CHANGED
|
@@ -97,11 +97,13 @@ export default function init(cfg, force) {
|
|
|
97
97
|
bbn.env.isFocused = true;
|
|
98
98
|
bbn.env.last_focus = timestamp();
|
|
99
99
|
bbn.fn.defaultWindowFocusFunction();
|
|
100
|
+
bbn.fn.log("FOCUSING ON WINDOW");
|
|
100
101
|
};
|
|
101
102
|
window.onblur = function () {
|
|
102
103
|
bbn.env.isFocused = false;
|
|
103
104
|
bbn.env.timeoff = Math.round(timestamp() / 1000);
|
|
104
105
|
bbn.fn.defaultWindowBlurFunction();
|
|
106
|
+
bbn.fn.log("BLURING ON WINDOW");
|
|
105
107
|
};
|
|
106
108
|
document.addEventListener("focusin", function (e) {
|
|
107
109
|
if (e.target instanceof HTMLElement &&
|