commit
f8daa7fecf
|
@ -191,6 +191,11 @@ export class MoodleMobileApp implements OnInit {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.urlSchemesProvider.isCustomURL(url)) {
|
||||||
|
// Not a custom URL, ignore.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.logger.debug('App launched by URL ', url);
|
this.logger.debug('App launched by URL ', url);
|
||||||
|
|
||||||
this.lastUrls[url] = Date.now();
|
this.lastUrls[url] = Date.now();
|
||||||
|
|
|
@ -99,7 +99,7 @@ export class CoreIframeComponent implements OnInit, OnChanges {
|
||||||
if (changes.src) {
|
if (changes.src) {
|
||||||
const url = this.urlUtils.getYoutubeEmbedUrl(changes.src.currentValue) || changes.src.currentValue;
|
const url = this.urlUtils.getYoutubeEmbedUrl(changes.src.currentValue) || changes.src.currentValue;
|
||||||
|
|
||||||
if (this.platform.is('ios')) {
|
if (this.platform.is('ios') && !this.urlUtils.isLocalFileUrl(url)) {
|
||||||
// Save a "fake" cookie for the iframe's domain to fix a bug in WKWebView.
|
// Save a "fake" cookie for the iframe's domain to fix a bug in WKWebView.
|
||||||
try {
|
try {
|
||||||
const win = <WKWebViewCookiesWindow> window;
|
const win = <WKWebViewCookiesWindow> window;
|
||||||
|
|
|
@ -143,7 +143,10 @@ export class CoreUserParticipantsComponent implements OnInit {
|
||||||
toggleSearch(): void {
|
toggleSearch(): void {
|
||||||
this.showSearchBox = !this.showSearchBox;
|
this.showSearchBox = !this.showSearchBox;
|
||||||
|
|
||||||
if (!this.showSearchBox && this.displaySearchResults) {
|
if (this.showSearchBox) {
|
||||||
|
// Make search bar visible.
|
||||||
|
this.domUtils.scrollToTop(this.content);
|
||||||
|
} else if (!this.showSearchBox && this.displaySearchResults) {
|
||||||
this.clearSearch();
|
this.clearSearch();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue