You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'As cloudflare hosts version specific files, \'latest\' as a version is not supported. Please specify a version or you can choose \'plotly\' as a CDN provider.'
62
+
);
63
+
});
64
+
65
+
it('should call loadViaCDN and return module for custom config',()=>{
thrownewError(`As cloudflare hosts version specific files, 'latest' as a version is not supported. Please specify a version or you can choose 'plotly' as a CDN provider.`);
thrownewError(`Invalid or missing CDN URL. Please provide a CDN URL in case of custom provider.`);
56
60
}
@@ -70,9 +74,6 @@ export class PlotlyViaCDNModule {
70
74
letsrc: string='';
71
75
switch(config.cdnProvider){
72
76
case'cloudflare':
73
-
if(config.version=='latest'){
74
-
thrownewError(`As cloudflare hosts version specific files, 'latest' as a version is not supported. Please specify a version or you can choose 'plotly' as a CDN provider.`);
0 commit comments