Skip to content

Commit 42310f9

Browse files
danielstoreychucklorenz
authored andcommitted
Fix issue #6 (#7)
* Fix issue #6 Listen to adapt:start instead of app:dataReady. This ensures the extension is initialised each time the language is changed. * Bump version Also update semver
1 parent b74e865 commit 42310f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "adapt-aboutUs",
3-
"version": "1.2.1",
4-
"framework": "^2.0.0",
3+
"version": "1.2.2",
4+
"framework": ">=2.0.0",
55
"homepage": "https://github.com/chucklorenz/adapt-aboutUs",
66
"issues": "https://github.com/chucklorenz/adapt-aboutUs/issues",
77
"authors": [

js/adapt-aboutUs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ define(function(require) {
2626

2727
}
2828

29-
Adapt.once('app:dataReady', function() {
29+
Adapt.on('adapt:start', function() {
3030
var courseAboutUs = Adapt.course.get('_aboutUs');
3131

32-
if(courseAboutUs) {
32+
if (courseAboutUs) {
3333
var drawerObject = {
3434
title: courseAboutUs.title,
3535
description: courseAboutUs.description,

0 commit comments

Comments
 (0)