Skip to content

Commit

Permalink
Use var to be consistent with AngularJS code
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Jul 8, 2024
1 parent 2809f72 commit dcc2928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/notificationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ app.controller('NotificationController', function ($controller, $scope, $timeout
Object.assign($scope.notificationData, notification);
$timeout(function () {
$scope.openModal('#editNotificationModal');
const modal = angular.element('#editNotificationModal');
var modal = angular.element('#editNotificationModal');
if (modal) {
const iframe = modal.find("iframe");
var iframe = modal.find("iframe");
if (iframe && iframe.length >= 1) {
iframe[0].contentDocument.body.innerHTML = notification.body;
}
Expand Down

0 comments on commit dcc2928

Please sign in to comment.