lib/assets/javascripts/scrivito.js in scrivito_sdk-1.5.5 vs lib/assets/javascripts/scrivito.js in scrivito_sdk-1.6.0.rc1

- old
+ new

@@ -14,20 +14,9 @@ cms_document.assert_user_logged_in(); cms_document.connect(); }); }); } - } else { - document.addEventListener("DOMContentLoaded", function() { - // Not in UI mode, but editing is allowed: redirect to the UI mode. - if (document.querySelector('[data-scrivito-private-page-config]')) { - console.log('Scrivito config found: redirecting to the UI...'); - window.location = '/scrivito' + - window.location.pathname + - window.location.search + - window.location.hash; - } - }); } // If the SDK is completely missing, the custom callbacks should nevertheless run. if (!window.scrivito) { window.scrivito = {