LivePage icon indicating copy to clipboard operation
LivePage copied to clipboard

Support the `view-source:` source code views.

Open chrisjj opened this issue 7 years ago • 9 comments

I'm getting no auto-update on view-source:file:// tabs.

file:// tabs are working fine.

Any remedy?

chrisjj avatar Nov 20 '16 01:11 chrisjj

'view-source:file://' is currently not supported unfortunately. I'll have an experiment this week to see if adding support is possible :)

MikeRogers0 avatar Nov 20 '16 07:11 MikeRogers0

Out of interest why wouldn't making the 'file://' live not handle your use case?

MikeRogers0 avatar Nov 20 '16 07:11 MikeRogers0

I'm getting no auto-update on view-source:file:// tabs.

Misleading report. Sorry. In truth, LiveUpdate responds with a very clear statement:

image.

Thanks.

I'll have an experiment this week to see if adding support is possible :)

Great! I'll look forward to trying it.

Out of interest why wouldn't making the 'file://' live not handle your use case?

I'm adjusting a PHP source, rebulding, and in the browser verifying the effect on non-render items such as data- attributes... using view-source.

chrisjj avatar Nov 20 '16 12:11 chrisjj

Oh that use case makes a lot of sense @chrisjj - I'll adjust the title to make this a feature :D

MikeRogers0 avatar Nov 21 '16 02:11 MikeRogers0

Thanks! That'll save me a few thousand ALT+TAB, CTRL+Rs :-)

chrisjj avatar Nov 22 '16 00:11 chrisjj

This might take me a bit longer to implement as it appears I can't inject JS into the view-source: pages like I normally would. However I believe I might have found a suitable solution (Doing the XHR request in the extension context), as a result it might take be a bit longer to implement.

MikeRogers0 avatar Dec 03 '16 23:12 MikeRogers0

Thanks. I'm patient :)

chrisjj avatar Dec 04 '16 00:12 chrisjj

Timing for this, I've moved it to 2.5.0 to prioritise #74 . I'm aiming to finish 2.4.0 over Christmas & 2.5.0 in February.

MikeRogers0 avatar Dec 13 '16 16:12 MikeRogers0

Sounds appropriate to me :)

chrisjj avatar Dec 13 '16 16:12 chrisjj