mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-20 02:39:19 +08:00
$window.document
This commit is contained in:
@@ -184,7 +184,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.refreshHighlighting = function() {
|
$scope.refreshHighlighting = function() {
|
||||||
var sourceCodes = document.querySelectorAll('main .file .code.source');
|
var sourceCodes = $window.document.querySelectorAll('main .file .code.source');
|
||||||
|
|
||||||
for (var i = 0; i < sourceCodes.length; i++) {
|
for (var i = 0; i < sourceCodes.length; i++) {
|
||||||
var sourceCode = sourceCodes[i];
|
var sourceCode = sourceCodes[i];
|
||||||
@@ -260,7 +260,7 @@
|
|||||||
$scope.downloadZip = function() {
|
$scope.downloadZip = function() {
|
||||||
var zip = new JSZip();
|
var zip = new JSZip();
|
||||||
|
|
||||||
var sourceCodes = document.querySelectorAll('main .file .code.source');
|
var sourceCodes = $window.document.querySelectorAll('main .file .code.source');
|
||||||
|
|
||||||
for (var i = 0; i < sourceCodes.length; i++) {
|
for (var i = 0; i < sourceCodes.length; i++) {
|
||||||
var sourceCode = sourceCodes[i];
|
var sourceCode = sourceCodes[i];
|
||||||
|
Reference in New Issue
Block a user