mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Disable forwarding for framed content
This commit is contained in:
parent
626b7fc6ea
commit
9541d4c673
1 changed files with 3 additions and 1 deletions
|
|
@ -39,6 +39,8 @@
|
|||
}
|
||||
window.showLoader = showLoader;
|
||||
|
||||
// Document Attribute Setters
|
||||
|
||||
function setThemeColor(color) {
|
||||
let el = document.getElementById("themeColor");
|
||||
if (!el) {
|
||||
|
|
@ -158,7 +160,7 @@
|
|||
|
||||
var fragment = window.location.hash.substring(1);
|
||||
|
||||
if (fragment.length < 3) {
|
||||
if (fragment.length < 3 && !isFramed) {
|
||||
return location.href = "/edit";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue