Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
69a3dac2
Commit
69a3dac2
authored
Jun 14, 2017
by
Sean Hammond
Committed by
GitHub
Jun 14, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #445 from hypothesis/fix-js-er
Fixing js error on :3000 page
parents
7f965106
7f98162a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
20 deletions
+23
-20
live-reload-server.js
scripts/gulp/live-reload-server.js
+23
-20
No files found.
scripts/gulp/live-reload-server.js
View file @
69a3dac2
...
@@ -120,7 +120,9 @@ function LiveReloadServer(port, config) {
...
@@ -120,7 +120,9 @@ function LiveReloadServer(port, config) {
document.body.appendChild(embedScript);
document.body.appendChild(embedScript);
var iframeIsAdded = false;
var iframeIsAdded = false;
document.querySelector('#add-test').addEventListener('click', function() {
var addIframeBtn = document.querySelector('#add-test');
if(addIframeBtn){
addIframeBtn.addEventListener('click', function() {
if (!iframeIsAdded) {
if (!iframeIsAdded) {
var iframe1 = document.querySelector('#iframe1');
var iframe1 = document.querySelector('#iframe1');
var iframeNew = iframe1.cloneNode();
var iframeNew = iframe1.cloneNode();
...
@@ -134,6 +136,7 @@ function LiveReloadServer(port, config) {
...
@@ -134,6 +136,7 @@ function LiveReloadServer(port, config) {
iframeIsAdded = false;
iframeIsAdded = false;
}
}
});
});
}
</script>
</script>
</body>
</body>
</html>
</html>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment