forked from jenkinsci/jenkins
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-66729] Un-inlining UsageStatistics/footer.jelly (CSP issue) …
…#Hacktoberfest (jenkinsci#5787) * Unlined UsageStatistics/footer.jelly * String Fix * String Fix * Fixing String Issue * Batch suggestions Fix
- Loading branch information
1 parent
71b0592
commit 6adc9c0
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
core/src/main/resources/hudson/model/UsageStatistics/footer-resources.js
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,5 @@ | ||
Behaviour.addLoadEvent(function() { | ||
var targetDiv = document.querySelector('#usage-stats-div'); | ||
var statData = targetDiv.getAttribute('data-inserted-from-java'); | ||
loadScript('https://usage.jenkins.io/usage-stats.js?'+statData); | ||
}); |
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