MOBILE-3320 plugins: Update wkuserscript plugin usage

main
Noel De Martin 2020-10-29 17:00:45 +01:00
parent afa92f4d71
commit b39c5ef909
2 changed files with 3 additions and 3 deletions

2
package-lock.json generated
View File

@ -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": {

View File

@ -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.