From 338c2aad6817f4f8c211d7874d8029b6f9256a05 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 30 Oct 2020 08:54:16 +0100 Subject: [PATCH] MOBILE-3565 core: Update WKUserScript plugin --- package-lock.json | 2 +- src/app/services/utils/iframe.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5adfa12d4..0ef732cd5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6454,7 +6454,7 @@ "integrity": "sha512-EYC5eQFVkoYXq39l7tYKE6lEjHJ04mvTmKXxGL7quHLdFPfJMNzru/UYpn92AOfpl3PQaZmou78C7EgmFOwFQQ==" }, "cordova-plugin-wkuserscript": { - "version": "git+https://github.com/moodlemobile/cordova-plugin-wkuserscript.git#6413f4bb3c2565f353e690b5c1450b69ad9e860e", + "version": "git+https://github.com/moodlemobile/cordova-plugin-wkuserscript.git#aa77d0f98a3fb106f2e798e5adf5882f01a2c947", "from": "git+https://github.com/moodlemobile/cordova-plugin-wkuserscript.git" }, "cordova-plugin-wkwebview-cookies": { diff --git a/src/app/services/utils/iframe.ts b/src/app/services/utils/iframe.ts index f419f21f1..b6e09d003 100644 --- a/src/app/services/utils/iframe.ts +++ b/src/app/services/utils/iframe.ts @@ -14,7 +14,7 @@ import { Injectable } from '@angular/core'; import { NavController } from '@ionic/angular'; -import { WKUserScriptWindow, WKUserScriptInjectionTime } from 'cordova-plugin-wkuserscript'; +import { WKUserScriptWindow } from 'cordova-plugin-wkuserscript'; import { WKWebViewCookiesWindow } from 'cordova-plugin-wkwebview-cookies'; import { CoreApp } from '@services/app'; @@ -470,7 +470,7 @@ export class CoreIframeUtilsProvider { userScriptWindow.WKUserScript?.addScript({ id: 'CoreIframeUtilsRecaptchaScript', file: recaptchaPath, - injectionTime: WKUserScriptInjectionTime.END, + injectionTime: userScriptWindow.WKUserScript?.InjectionTime.END, }); // Handle post messages received by iframes.