Skip to content

Commit

Permalink
Fix issue #6 (#7)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
danielstorey authored and chucklorenz committed Oct 23, 2018
1 parent b74e865 commit 42310f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "adapt-aboutUs",
"version": "1.2.1",
"framework": "^2.0.0",
"version": "1.2.2",
"framework": ">=2.0.0",
"homepage": "https://github.com/chucklorenz/adapt-aboutUs",
"issues": "https://github.com/chucklorenz/adapt-aboutUs/issues",
"authors": [
Expand Down
4 changes: 2 additions & 2 deletions js/adapt-aboutUs.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ define(function(require) {

}

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

if(courseAboutUs) {
if (courseAboutUs) {
var drawerObject = {
title: courseAboutUs.title,
description: courseAboutUs.description,
Expand Down

0 comments on commit 42310f9

Please sign in to comment.