Skip to content

Injected scripts work only on pages with cordova.js  #161

@timkim

Description

@timkim

This is an interesting issue that I just realised. Although it was made by design, I realised that people may want just plain vanilla .html pages but also want autoreload, console, etc to work when on that particular page.

So if a particular .html page does not have this string:

<script type=\"text/javascript\" src=\"cordova.js\"></script>

None of the scripts will inject!

Sources:
https://github.com/phonegap/connect-phonegap/blob/master/lib/middleware/zip.js#L74
https://github.com/phonegap/connect-phonegap/blob/master/lib/middleware/update.js#L61

This could also be the cause of many people's issues with autoreload. If they make a page and do not include the cordova.js script tag, then they get no updates from the server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions