Prevent YNHPortal button to be added on iframe.

This commit is contained in:
opi 2014-02-17 13:48:04 +01:00
parent df60ba6ada
commit 3138df1c7b

View file

@ -119,6 +119,8 @@ function domReady(cb) {
Main
---------------------------------------------------------- */
domReady(function(){
// Don't do this in iframe
if (window.self !== window.top) {return false;}
// Add portal stylesheet
var portalStyle = document.createElement("link");