Files
Testing/pomodoro/js/cross_framing_protection.js
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

15 lines
468 B
JavaScript

/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Conditionally included if framing is not allowed
*/
if (self == top) {
var style_element = document.getElementById("cfs-style");
// check if style_element has already been removed
// to avoid frequently reported js error
if (typeof(style_element) != 'undefined' && style_element != null) {
style_element.parentNode.removeChild(style_element);
}
} else {
top.location = self.location;
}