Skip to content

Commit

Permalink
Class selector for main content has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchi committed Jan 16, 2025
1 parent 30b15ae commit d015e14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion amd/build/enrolments.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/build/enrolments.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/src/enrolments.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Notification from 'core/notification';
export const deleteContent = () => {
const main = document.querySelector('body.courserole-none div[role="main"]');
if (main) {
main.querySelector('.onetopic-tab-body').innerHTML = '';
main.querySelector('.course-content').innerHTML = '';
Notification.addNotification({
message: M.util.get_string('noroleerror', 'local_solent'),
closebutton: false,
Expand Down

0 comments on commit d015e14

Please sign in to comment.