OWL icon indicating copy to clipboard operation
OWL copied to clipboard

Problem with Safari

Open interstar opened this issue 11 years ago • 12 comments

Heard there's a problem with OWL on Safari on a Mac. Seems to be some kind of javascript problem. Installation works fine on Firefox on same machine.

Can any Mac owners tell me more?

interstar avatar Jan 10 '14 18:01 interstar

If I check out a clean repo and open index.html I get:

ReferenceError: initLocalStorage is not defined

in all three of Chrome Canary, Webkit nightlies (dev safari), and Firefox.

Is there some better replication strategy that will get past that?

cdent avatar Jan 10 '14 22:01 cdent

The version on thoughtstorms seems to work okay, apparently the made index.html is missing quite a lot of code.

Seems to work okay in Safari.

cdent avatar Jan 10 '14 22:01 cdent

Ouch! Yes, that's very broken isn't it?

I've been fiddling with the python-served version, must have let the stand-alone page get out of sync. :-(

Let me double check the differences and update.

Thanks very much. Are you saying the Python served version is OK in Safari or just the version hosted on thoughtstorms?

cheers

Phil

On 10 January 2014 20:31, Chris Dent [email protected] wrote:

The version on thoughtstorms seems to work okay, apparently the made index.html is missing quite a lot of code.

Seems to work okay in Safari.

— Reply to this email directly or view it on GitHubhttps://github.com/interstar/OWL/issues/1#issuecomment-32073274 .

interstar avatar Jan 10 '14 22:01 interstar

Thanks very much. Are you saying the Python served version is OK in Safari or just the version hosted on thoughtstorms?

I only tested the version on thoughtstorms not a locally running server.

cdent avatar Jan 10 '14 22:01 cdent

OK ... that was an old call that was left-over in the standalone version. Now fixed and pushed back to github.

Running index.html locally should now work . (Thanks again.)

I believe it was the python served version that was giving the Safari error ... wondering if it's a permissions thing. Or maybe some other kind of Safari fussiness.

Phil

On 10 January 2014 20:57, Chris Dent [email protected] wrote:

Thanks very much. Are you saying the Python served version is OK in Safari or just the version hosted on thoughtstorms?

I only tested the version on thoughtstorms not a locally running server.

— Reply to this email directly or view it on GitHubhttps://github.com/interstar/OWL/issues/1#issuecomment-32075353 .

interstar avatar Jan 10 '14 23:01 interstar

Yeah, so the new index.html works fine.

And when I run the web version in chrome it works and in safari I see:

[Error] TypeError: undefined is not an object (evaluating 'n.innerHTML.replace')
    (anonymous function) (jquery-1.9.1.min.js, line 4)

which appears to be getting called from pageStore.js and line 99 or 97.

cdent avatar Jan 12 '14 14:01 cdent

Thanks for looking at this Chris.

Will try to grab a Mac tomorrow to find out what's going wrong here.

regards

Phil

P

On 12 January 2014 12:16, Chris Dent [email protected] wrote:

Yeah, so the new index.html works fine.

And when I run the web version in chrome it works and in safari I see:

[Error] TypeError: undefined is not an object (evaluating 'n.innerHTML.replace') (anonymous function) (jquery-1.9.1.min.js, line 4)

which appears to be getting called from pageStore.js and line 99 or 97.

— Reply to this email directly or view it on GitHubhttps://github.com/interstar/OWL/issues/1#issuecomment-32123415 .

interstar avatar Jan 12 '14 15:01 interstar

This doesn't seem to be Mac specific, I have the same problem here on Chrome/Win7, following Quick Start #2 : Basic Server. Unfortunately I am not enough of a JS whizz to see what the problem is.

revivalizer avatar Jan 13 '14 09:01 revivalizer

OK. Thanks revivalizer. I'll look into that too.

interstar avatar Jan 13 '14 13:01 interstar

OK. I've put what I think is a fix for the Safari bug. (It was basically happening when you tried to create a new page.)

This looks working to me, though would be great to get some confirmation. Also to see if this is now working on Windows Chrome / IE / Firefox.

interstar avatar Feb 13 '14 05:02 interstar

In webkit nightlies I'm able to open up index.html, edit some outlines, create a link to a new page and navigate to that new page and carry on editing.

cdent avatar Feb 13 '14 13:02 cdent

Thanks Chris. That sounds like it's what it should do :-)

On 13 February 2014 11:29, Chris Dent [email protected] wrote:

In webkit nightlies I'm able to open up index.html, edit some outlines, create a link to a new page and navigate to that new page and carry on editing.

Reply to this email directly or view it on GitHubhttps://github.com/interstar/OWL/issues/1#issuecomment-34977527 .

interstar avatar Feb 13 '14 19:02 interstar