Skip to content

Commit

Permalink
feat(ios): remove normalizeURL function (#576)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: normalizeURL was deprecated and has been removed, use
window.Ionic.WebView.convertFileSrc instead
  • Loading branch information
jcesarmobile committed May 27, 2020
1 parent 17d2ada commit d5bdbaa
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/ios/wk-plugin.js
Expand Up @@ -8,17 +8,12 @@
// Initialize Ionic
window.Ionic = window.Ionic || {};

function normalizeURL(url) {
console.warn('normalizeURL is deprecated, use window.Ionic.WebView.convertFileSrc');
return window.Ionic.WebView.convertFileSrc(url);
}
if (typeof window.wkRewriteURL === 'undefined') {
window.wkRewriteURL = function (url) {
console.warn('wkRewriteURL is deprecated, use window.Ionic.WebView.convertFileSrc instead');
return window.Ionic.WebView.convertFileSrc(url);
}
}
window.Ionic.normalizeURL = normalizeURL;

var stopScrollHandler = window.webkit.messageHandlers.stopScroll;
if (!stopScrollHandler) {
Expand Down

0 comments on commit d5bdbaa

Please sign in to comment.