@@ -82,9 +82,6 @@ export const allowsInlineMediaPlaybackProperty = new Property<WebViewExtBase, bo
82
82
export const srcProperty = new Property < WebViewExtBase , string > ( {
83
83
name : 'src'
84
84
} ) ;
85
- export const appCachePathProperty = new Property < WebViewExtBase , string > ( {
86
- name : 'appCachePath'
87
- } ) ;
88
85
89
86
export const scrollBounceProperty = new Property < WebViewExtBase , boolean > ( {
90
87
name : 'scrollBounce' ,
@@ -825,7 +822,7 @@ export abstract class WebViewExtBase extends ContainerView {
825
822
// Add file:/// prefix for local files.
826
823
// They should be loaded with _loadUrl() method as it handles query params.
827
824
if ( src . startsWith ( '~/' ) ) {
828
- src = `file://${ knownFolders . currentApp ( ) . path } /${ src . substr ( 2 ) } ` ;
825
+ src = `file://${ knownFolders . currentApp ( ) . path } /${ src . substring ( 2 ) } ` ;
829
826
if ( Trace . isEnabled ( ) ) {
830
827
Trace . write ( `WebViewExt.src = "${ originSrc } " startsWith ~/ resolved to "${ src } "` , WebViewTraceCategory , Trace . messageType . info ) ;
831
828
}
@@ -890,7 +887,7 @@ export abstract class WebViewExtBase extends ContainerView {
890
887
}
891
888
892
889
if ( filepath . startsWith ( '~' ) ) {
893
- filepath = path . normalize ( knownFolders . currentApp ( ) . path + filepath . substr ( 1 ) ) ;
890
+ filepath = path . normalize ( knownFolders . currentApp ( ) . path + filepath . substring ( 1 ) ) ;
894
891
}
895
892
896
893
if ( filepath . startsWith ( 'file://' ) ) {
@@ -1453,7 +1450,7 @@ export abstract class WebViewExtBase extends ContainerView {
1453
1450
*/
1454
1451
public fixLocalResourceName ( resourceName : string ) {
1455
1452
if ( resourceName . startsWith ( this . interceptScheme ) ) {
1456
- return resourceName . substr ( this . interceptScheme . length + 3 ) ;
1453
+ return resourceName . substring ( this . interceptScheme . length + 3 ) ;
1457
1454
}
1458
1455
1459
1456
return resourceName ;
@@ -1576,6 +1573,5 @@ viewPortProperty.register(WebViewExtBase);
1576
1573
isScrollEnabledProperty . register ( WebViewExtBase ) ;
1577
1574
scalesPageToFitProperty . register ( WebViewExtBase ) ;
1578
1575
mediaPlaybackRequiresUserActionProperty . register ( WebViewExtBase ) ;
1579
- appCachePathProperty . register ( WebViewExtBase ) ;
1580
1576
limitsNavigationsToAppBoundDomainsProperty . register ( WebViewExtBase ) ;
1581
1577
scrollBarIndicatorVisibleProperty . register ( WebViewExtBase ) ;
0 commit comments