Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure iframe is not undefined. #412

Merged
merged 1 commit into from
May 17, 2022
Merged

Conversation

djfarrelly
Copy link
Member

Description

Prior to the 2.0 release, the iframe was set at the highest level of the closure, but it no longer is, so instead of setting and reading that variable, this passes it as an argument or searches the page for it.

Fixes #398, #411, #403

app.controller('ItemCtrl', [
'$scope', '$rootScope', '$routeParams', '$location', 'Email', '$http', '$cookies',
function ($scope, $rootScope, $routeParams, $location, Email, $http, $cookies) {
const iframe = null
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of auto-formatting in this file - this is what was removed and we no longer use this higher level variable in the closure.

@djfarrelly djfarrelly merged commit d474baa into master May 17, 2022
@djfarrelly djfarrelly deleted the fix/iframe-is-undefined branch May 17, 2022 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Email display error
1 participant