The new window opens with Pinterest interface where users can pin, create board. etc. If user saves post, window will be just closed after clicking on "See in now" button. Also, the window closes after a while (5 - 20 seconds) of inactivity.
We're using pinit.js and WP plugin Shared Counts. For the second one, we found a workaround by replacing new window with a new tab.
We tried debugging this by adding new_window.onbeforeunload = function(){ console.log('Window was unloaded') } in source code of library but it returend nothing.
The new window opens with Pinterest interface where users can pin, create board. etc. If user saves post, window will be just closed after clicking on "See in now" button. Also, the window closes after a while (5 - 20 seconds) of inactivity. We're using pinit.js and WP plugin Shared Counts. For the second one, we found a workaround by replacing new window with a new tab. We tried debugging this by adding
new_window.onbeforeunload = function(){ console.log('Window was unloaded') }
in source code of library but it returend nothing.Thanks, Roman