-
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
4e52c31
commit 165dd06
Showing
3 changed files
with
38 additions
and
35 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
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
function setFrame(which) { | ||
let url = document.getElementById(((which == "devEnvironment") ? "devEnvironmentURL" : "previewURL")).value; | ||
let frame = document.getElementById(((which == "devEnvironment") ? "devEnvironmentFrame" : "previewFrame")); | ||
frame.setAttribute("src", url); | ||
console.log("preview loaded"); | ||
let url = document.getElementById(((which == "devEnvironment") ? "devEnvironmentURL" : "previewURL")).value; | ||
let frame = document.getElementById(((which == "devEnvironment") ? "devEnvironmentFrame" : "previewFrame")); | ||
frame.setAttribute("src", url); | ||
console.log("preview loaded"); | ||
}; | ||
|
||
function refreshPreview() { | ||
let preview = document.getElementById("previewFrame"); | ||
preview.src += ''; | ||
console.log("preview refreshed"); | ||
let preview = document.getElementById("previewFrame"); | ||
preview.src += ''; | ||
console.log("preview refreshed"); | ||
} |
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