$window.document

pull/32/head
Szekeres Bálint 2018-11-19 09:03:48 +01:00
parent 97e0cda352
commit 313518413a
1 changed files with 2 additions and 2 deletions

View File

@ -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];