Skip to content

Bookmarklet broken #158

Open
Open

Description

@cdelahousse

Activity

  1. spratt commented on Apr 19, 2013

    @spratt
    Member

    You're right, because it should be using bookmarklet.min.js. At least, that's what the build script builds.

    Also, there's a typo in the build script that outputs it to bookmarket/ instead of bookmarklet/. See: http://review.steamedpears.com/bookmarket/bookmarklet.min.js

  2. spratt commented on Apr 19, 2013

    @spratt
    Member
  3. cdelahousse commented on Apr 19, 2013

    @cdelahousse
    MemberAuthor

    Shit.
    Nor is /bookmarklet/style.css being served.

  4. spratt commented on Apr 19, 2013

    @spratt
    Member

    Yeah, that file doesn't even get built by the build script.

  5. cdelahousse commented on Apr 19, 2013

    @cdelahousse
    MemberAuthor

    Also, the cors module isn't working.

  6. spratt commented on Apr 19, 2013

    @spratt
    Member

    What makes you say that?

  7. cdelahousse commented on Apr 19, 2013

    @cdelahousse
    MemberAuthor

    I'm getting this HTTP header/message:

    OPTIONS
    (failed)
    Origin http://www.lipsum.com is not allowed by Access-Control-Allow-Origin.

  8. spratt commented on Apr 19, 2013

    @spratt
    Member

    Cool. Things to fix.

  9. cdelahousse commented on Apr 19, 2013

    @cdelahousse
    MemberAuthor

    I'm fixing the CSS now...

  10. cdelahousse commented on Apr 19, 2013

    @cdelahousse
    MemberAuthor

    @spratt says "Does it work if you build the bookmarklet in dev mode? I think the root cause of this issue was that dev mode builds bookmarklet.js and production builds bookmarklet.min.js"

    All the production script does is uglify the bookmarklet.js to a file named bookmarklet.min.js code. The code still runs fine. The issue I'm getting is that the server is no longer sending an OPTIONS header.

  11. cdelahousse commented on Apr 19, 2013

    @cdelahousse
    MemberAuthor

    Hold on. I'll retest locally.

  12. spratt commented on Apr 19, 2013

    @spratt
    Member

    I appreciate everything you're saying here, but the context of that question was a line of code that specifically references the uglified version.

  13. cdelahousse commented on Apr 19, 2013

    @cdelahousse
    MemberAuthor

    Even testing locally on the unminified build of the bookmarklet against my local install, I still get the same OPTION error.

  14. spratt commented on Apr 19, 2013

    @spratt
    Member

    Look: that question is about a GET request for bookmarklet.min.js when you may have only built bookmarklet.js. The CORS issue is separate.

  15. cdelahousse commented on Apr 19, 2013

    @cdelahousse
    MemberAuthor

    Look: that's clearer. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions