mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Prevent YNHPortal button to be added on iframe.
This commit is contained in:
parent
df60ba6ada
commit
3138df1c7b
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue