cordova-plugin-ionic-webview
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -0,1 +1,11 @@ | ||
# [2.3.2](https://github.com/ionic-team/cordova-plugin-ionic-webview/compare/v2.3.1...v2.3.2) (2019-01-18) | ||
### Bug Fixes | ||
* **ios:** Fix video playback of files with uppercase extension ([#277](https://github.com/ionic-team/cordova-plugin-ionic-webview/pull/277)), closes [#260](https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/260) | ||
* Use a single scheme for all files ([#278](https://github.com/ionic-team/cordova-plugin-ionic-webview/pull/278)), closes [#258](https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/258) | ||
## [2.3.1](https://github.com/ionic-team/cordova-plugin-ionic-webview/compare/v2.3.0...v2.3.1) (2018-12-06) | ||
@@ -2,0 +12,0 @@ |
{ | ||
"name": "cordova-plugin-ionic-webview", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Ionic Web View Engine Plugin", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -8,13 +8,12 @@ var exec = require('cordova/exec'); | ||
} | ||
if (!url.startsWith('file://')) { | ||
return url; | ||
if (url.startsWith('/')) { | ||
return window.WEBVIEW_SERVER_URL + '/_app_file_' + url; | ||
} | ||
if (window.WEBVIEW_SERVER_URL.startsWith('ionic://')) { | ||
return url.replace('file', 'ionic-asset'); | ||
if (url.startsWith('file://')) { | ||
return window.WEBVIEW_SERVER_URL + url.replace('file://', '/_app_file_'); | ||
} | ||
url = url.substr(7); // len("file://") == 7 | ||
if (url.length === 0 || url[0] !== '/') { // ensure the new URL starts with / | ||
url = '/' + url; | ||
if (url.startsWith('content://')) { | ||
return window.WEBVIEW_SERVER_URL + url.replace('content:/', '/_app_content_'); | ||
} | ||
return window.WEBVIEW_SERVER_URL + '/_file_' + url; | ||
return url; | ||
}, | ||
@@ -21,0 +20,0 @@ setServerBasePath: function(path) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
394085
223
1