PHP Rocks
IE - only runs when console/dev tools - Druckversion

+- PHP Rocks (https://www.php-rocks.de)
+-- Forum: HTML, CSS, Usability und Barrierefreiheit (https://www.php-rocks.de/https://www.php-rocks.de/forum/11-html-css-usability-und-barrierefreiheit.html)
+--- Forum: JavaScript / JavaScript Frameworks / Ajax (https://www.php-rocks.de/https://www.php-rocks.de/forum/13-javascript-javascript-frameworks-ajax.html)
+--- Thema: IE - only runs when console/dev tools (/https://www.php-rocks.de/thema/101-ie-only-runs-when-console-dev-tools.html)



IE - only runs when console/dev tools - Till - 30.05.2016

Hallo,
mein javascript funktioniert nicht im IE.
-> Schalte ich F12 die dev tools an, "funktioniert" die Seite
-> Ja es gibt ein paar Fehler, welche allerdings abgefangen/behandelt werden.

Klicke ich die dev tools weg und lade neu geht die Seite wieder nicht.

Hat jemand eine Idee wonach ich suchen kann?

mfg


RE: IE - only runs when console/dev tools (Proxy/Promise pollyfill) - Till - 30.05.2016

Ich habe einen Verdächtigen:
Ich habe ein polyfill für das Proxy Object:
http://cdn.frdl.webfan.de/cdn/frdl/flow/libraries/polyfill/proxy.js?minify=no
(etwas modifiziert let->var und throw -> console.warn)

Irgendwie hatte das schonmal im IE funktioniert, nur anscheinend nicht mehr mit trap has, wie auch immer?

Zitat:Warning: Proxy polyfill does not support trap has

....edit...

Ich konnte weitere Fehler ermitteln, u.A. im indexedDB polyfill (window.openDatabase, tritt bisher nur auf
wenn das script nicht im html head sondern body aufgerufen wird?) und im l10n script...

...suche nun nach der überladenen methode has ...!?!
...


RE: IE - only runs when console/dev tools - Till - 05.06.2016

Ich dummy, der IE hat natürlich ohne dev tools noch nie eine Console gehabt.
Der Scope hatte sich geändert, deshalb der Fehler, so gehts:


var console = new consoleCustom();
window.console = new consoleCustom();