-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2144c95
commit 82b930a
Showing
4 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,6 @@ export default defineNuxtConfig({ | |
app: { | ||
baseURL: "/hc-certified-backflow-testers/", | ||
}, | ||
|
||
plugins: [{ src: "~/plugins/iframe-resize", mode: "client" }], | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
JordanPisani
Author
Contributor
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import iframeResize from "iframe-resizer"; | ||
This comment has been minimized.
Sorry, something went wrong.
mccarthyk
Contributor
|
||
|
||
export default defineNuxtPlugin((nuxtApp) => { | ||
nuxtApp.vueApp.directive("resize", { | ||
This comment has been minimized.
Sorry, something went wrong.
mccarthyk
Contributor
|
||
mounted(el, { value = {} }) { | ||
el.addEventListener("load", () => iframeResize(value, el)); | ||
}, | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JordanPisani this line shouldn't be needed... where did you get this code?