MOBILE-3320 plugins: Update wkuserscript plugin usage
parent
afa92f4d71
commit
b39c5ef909
|
@ -4778,7 +4778,7 @@
|
||||||
"integrity": "sha512-EYC5eQFVkoYXq39l7tYKE6lEjHJ04mvTmKXxGL7quHLdFPfJMNzru/UYpn92AOfpl3PQaZmou78C7EgmFOwFQQ=="
|
"integrity": "sha512-EYC5eQFVkoYXq39l7tYKE6lEjHJ04mvTmKXxGL7quHLdFPfJMNzru/UYpn92AOfpl3PQaZmou78C7EgmFOwFQQ=="
|
||||||
},
|
},
|
||||||
"cordova-plugin-wkuserscript": {
|
"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"
|
"from": "git+https://github.com/moodlemobile/cordova-plugin-wkuserscript.git"
|
||||||
},
|
},
|
||||||
"cordova-plugin-wkwebview-cookies": {
|
"cordova-plugin-wkwebview-cookies": {
|
||||||
|
|
|
@ -29,7 +29,7 @@ import { CoreContentLinksHelperProvider } from '@core/contentlinks/providers/hel
|
||||||
import { makeSingleton } from '@singletons/core.singletons';
|
import { makeSingleton } from '@singletons/core.singletons';
|
||||||
import { CoreUrl } from '@singletons/url';
|
import { CoreUrl } from '@singletons/url';
|
||||||
import { CoreWindow } from '@singletons/window';
|
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';
|
import { WKWebViewCookiesWindow } from 'cordova-plugin-wkwebview-cookies';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -70,7 +70,7 @@ export class CoreIframeUtilsProvider {
|
||||||
win.WKUserScript.addScript({
|
win.WKUserScript.addScript({
|
||||||
id: 'CoreIframeUtilsRecaptchaScript',
|
id: 'CoreIframeUtilsRecaptchaScript',
|
||||||
file: recaptchaPath,
|
file: recaptchaPath,
|
||||||
injectionTime: WKUserScriptInjectionTime.END,
|
injectionTime: win.WKUserScript.InjectionTime.END,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Handle post messages received by iframes.
|
// Handle post messages received by iframes.
|
||||||
|
|
Loading…
Reference in New Issue