You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
405 B
16 lines
405 B
|
|
export default function Scene(config) {
|
|
const { onLoad } = config
|
|
config.onLoad = function(options) {
|
|
if (onLoad) {
|
|
onLoad.call(this, options)
|
|
}
|
|
this.onNotice = function(message) {
|
|
this.notification = this.notification || this.selectComponent('#qn-notification')
|
|
if(this.notification){
|
|
this.notification.notify(message)
|
|
}
|
|
}
|
|
}
|
|
return Page(config)
|
|
}
|