diff --git a/package-lock.json b/package-lock.json index c44b655e4..8f92002a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4778,7 +4778,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#1ad47e75a1811cec0a944d3b8b8544b3d5e052ca", "from": "git+https://github.com/moodlemobile/cordova-plugin-wkuserscript.git" }, "cordova-plugin-wkwebview-cookies": { diff --git a/src/providers/utils/iframe.ts b/src/providers/utils/iframe.ts index d50e4010e..5ffa32dd5 100644 --- a/src/providers/utils/iframe.ts +++ b/src/providers/utils/iframe.ts @@ -29,7 +29,7 @@ import { CoreContentLinksHelperProvider } from '@core/contentlinks/providers/hel import { makeSingleton } from '@singletons/core.singletons'; import { CoreUrl } from '@singletons/url'; import { CoreWindow } from '@singletons/window'; -import { WKUserScriptWindow, WKUserScriptInjectionTime } from 'cordova-plugin-wkuserscript'; +import { WKUserScriptWindow } from 'cordova-plugin-wkuserscript'; import { WKWebViewCookiesWindow } from 'cordova-plugin-wkwebview-cookies'; /* @@ -70,7 +70,7 @@ export class CoreIframeUtilsProvider { win.WKUserScript.addScript({ id: 'CoreIframeUtilsRecaptchaScript', file: recaptchaPath, - injectionTime: WKUserScriptInjectionTime.END, + injectionTime: win.WKUserScript.InjectionTime.END, }); // Handle post messages received by iframes.