Skip to content

Commit

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

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);
}
}

var stopScrollHandler = window.webkit.messageHandlers.stopScroll;
if (!stopScrollHandler) {
console.error('Can not find stopScroll handler');
Expand Down

0 comments on commit 02c18ea

Please sign in to comment.