app/javascript/kpop/modals/frame_modal.js in katalyst-kpop-3.0.1 vs app/javascript/kpop/modals/frame_modal.js in katalyst-kpop-3.0.2
- old
+ new
@@ -3,11 +3,11 @@
import { Modal } from "./modal";
export class FrameModal extends Modal {
/**
* When the FrameController detects a frame element on connect, it runs this
- * method to santity check the frame src and restore the modal state.
+ * method to sanity check the frame src and restore the modal state.
*
* @param frame FrameController
* @param element TurboFrame element
*/
static connect(frame, element) {
@@ -20,11 +20,11 @@
return frame.open(modal, { animate: false });
} else {
console.warn(
"kpop: restored frame src doesn't match window href",
modal.src,
- window.location.href
+ window.location.href,
);
return frame.clear();
}
}
@@ -56,10 +56,10 @@
if (element.src && element.src !== window.location.href) {
console.warn(
"kpop: frame src doesn't match window",
element.src,
window.location.href,
- location
+ location,
);
frame.clear();
}
this.debug("navigate to", location);