mirror of
https://github.com/google/blockly.git
synced 2025-12-16 06:10:12 +01:00
fix: update prettify url (#6459)
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
<script src="/storage.js"></script>
|
||||
<link rel="stylesheet" href="factory.css">
|
||||
<link rel="stylesheet" href="cp.css">
|
||||
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
|
||||
<script>
|
||||
var blocklyFactory;
|
||||
var init = function() {
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
|
||||
@@ -201,7 +201,7 @@ Code.bindClick = function(el, func) {
|
||||
*/
|
||||
Code.importPrettify = function() {
|
||||
var script = document.createElement('script');
|
||||
script.setAttribute('src', 'https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js');
|
||||
script.setAttribute('src', 'https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js');
|
||||
document.head.appendChild(script);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user