mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19329: Fixing UseCdn() call for scripts
The automatic shape binding for scripts was breaking CDN usage. Work Item: 19329 --HG-- branch : 1.x
This commit is contained in:
@@ -119,24 +119,4 @@ namespace Orchard.DisplayManagement.Descriptors.ResourceBindingStrategy {
|
||||
return "Style__";
|
||||
}
|
||||
}
|
||||
|
||||
// discovers .css files and turns them into Style__<filename> shapes.
|
||||
public class ScriptBindingStrategy : StaticFileBindingStrategy, IShapeTableProvider {
|
||||
public ScriptBindingStrategy(IExtensionManager extensionManager, ShellDescriptor shellDescriptor, IVirtualPathProvider virtualPathProvider)
|
||||
: base(extensionManager, shellDescriptor, virtualPathProvider) {
|
||||
}
|
||||
|
||||
public override string GetFileExtension() {
|
||||
return ".js";
|
||||
}
|
||||
|
||||
public override string GetFolder() {
|
||||
return "Scripts";
|
||||
}
|
||||
|
||||
public override string GetShapePrefix() {
|
||||
return "Script__";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user