src:resource.toString()// disabled due to https://github.com/electron/electron/issues/6275 + '?' + Date.now() // We really want to avoid the browser from caching this resource, so we add a fake query param that is unique
src:descriptor.resource.toString()// disabled due to https://github.com/electron/electron/issues/6275 + '?' + Date.now() // We really want to avoid the browser from caching this resource, so we add a fake query param that is unique
data:resource.toString(),// disabled due to https://github.com/electron/electron/issues/6275 + '?' + Date.now(), // We really want to avoid the browser from caching this resource, so we add a fake query param that is unique
data:descriptor.resource.toString(),// disabled due to https://github.com/electron/electron/issues/6275 + '?' + Date.now(), // We really want to avoid the browser from caching this resource, so we add a fake query param that is unique
width:'100%',
height:'100%',
type:mime
...
...
@@ -130,7 +138,7 @@ export class ResourceViewer {
.empty()
.element('audio')
.attr({
src:resource.toString(),// disabled due to https://github.com/electron/electron/issues/6275 + '?' + Date.now(), // We really want to avoid the browser from caching this resource, so we add a fake query param that is unique
src:descriptor.resource.toString(),// disabled due to https://github.com/electron/electron/issues/6275 + '?' + Date.now(), // We really want to avoid the browser from caching this resource, so we add a fake query param that is unique
text:nls.localize('missingAudioSupport',"Sorry but playback of audio files is not supported."),
controls:'controls'
}).on(DOM.EventType.LOAD,()=>{
...
...
@@ -144,7 +152,7 @@ export class ResourceViewer {
.empty()
.element('video')
.attr({
src:resource.toString(),// disabled due to https://github.com/electron/electron/issues/6275 + '?' + Date.now(), // We really want to avoid the browser from caching this resource, so we add a fake query param that is unique
src:descriptor.resource.toString(),// disabled due to https://github.com/electron/electron/issues/6275 + '?' + Date.now(), // We really want to avoid the browser from caching this resource, so we add a fake query param that is unique
text:nls.localize('missingVideoSupport',"Sorry but playback of video files is not supported."),
controls:'controls'
}).on(DOM.EventType.LOAD,()=>{
...
...
@@ -157,7 +165,7 @@ export class ResourceViewer {
$(container)
.empty()
.span({
text:nls.localize('nativeBinaryError',"The file cannot be displayed in the editor because it is either binary, very large or uses an unsupported text encoding.")
text:nls.localize('nativeBinaryError',"The file will not be displayed in the editor because it is either binary, very large or uses an unsupported text encoding.")