/* global blocek_config, CKFinder, Sentry */ import cookies from 'js-cookie'; function openAdmin(e) { var url = $(this).attr('href'); if (!url) { return false; } var $dialog = $('#wpjToolbar_dialog'), $iframe = false; $dialog.find('iframe').each(function() { if ($(this).attr('src') == url) { $iframe = $(this); $iframe.css('display', 'block'); } else { $(this).css('display', 'none'); } }); if ($iframe === false) { $iframe = $('