From 313518413abf5e69f00f9977b23c37b58d270542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szekeres=20Ba=CC=81lint?= Date: Mon, 19 Nov 2018 09:03:48 +0100 Subject: [PATCH] $window.document --- public/assets/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/assets/js/app.js b/public/assets/js/app.js index d444c12..ade8a62 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -184,7 +184,7 @@ }; $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++) { var sourceCode = sourceCodes[i]; @@ -260,7 +260,7 @@ $scope.downloadZip = function() { 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++) { var sourceCode = sourceCodes[i];