From 6eeb93afaa54a4d10aa06b683584d99683e5fae1 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Wed, 7 Jul 2021 12:38:45 -0400 Subject: remove wiki.developer.mozilla.org links (de) (#1441) Part of #1440 --- files/de/web/javascript/guide/modules/index.html | 2 +- files/de/web/javascript/guide/using_promises/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'files/de/web/javascript/guide') diff --git a/files/de/web/javascript/guide/modules/index.html b/files/de/web/javascript/guide/modules/index.html index 25dfa9cadb..3d006ec04c 100644 --- a/files/de/web/javascript/guide/modules/index.html +++ b/files/de/web/javascript/guide/modules/index.html @@ -83,7 +83,7 @@ modules/

However, we decided to keep to using .js, at least for the moment. To get modules to work correctly in a browser, you need to make sure that your server is serving them with a Content-Type header that contains a JavaScript MIME type such as text/javascript. If you don't, you'll get a strict MIME type checking error along the lines of "The server responded with a non-JavaScript MIME type" and the browser won't run your JavaScript. Most servers already set the correct type for .js files, but not yet for .mjs files. Servers that already serve .mjs files correctly include GitHub Pages and http-server for Node.js.

-

This is OK if you are using such an environment already, or if you aren't but you know what you are doing and have access (i.e. you can configure your server to set the correct Content-Type for .mjs files). It could however cause confusion if you don't control the server you are serving files from, or are publishing files for public use, as we are here.

+

This is OK if you are using such an environment already, or if you aren't but you know what you are doing and have access (i.e. you can configure your server to set the correct Content-Type for .mjs files). It could however cause confusion if you don't control the server you are serving files from, or are publishing files for public use, as we are here.

For learning and portability purposes, we decided to keep to .js.

diff --git a/files/de/web/javascript/guide/using_promises/index.html b/files/de/web/javascript/guide/using_promises/index.html index 0aad2a4071..5429cddb9e 100644 --- a/files/de/web/javascript/guide/using_promises/index.html +++ b/files/de/web/javascript/guide/using_promises/index.html @@ -318,7 +318,7 @@ console.log(1); // 1, 2, 3, 4

Im oberen Beispiel steht jetzt eine einzelne, deterministische Promise chain mit ordentlicher Fehlerbehandlung.

-

Das Verwenden von async/await adressiert die meisten, wenn nicht alle dieser Fehlerquellen; stattdessen kann dann der typische Fehler entstehen, dass man await-Keyword vergisst.

+

Das Verwenden von async/await adressiert die meisten, wenn nicht alle dieser Fehlerquellen; stattdessen kann dann der typische Fehler entstehen, dass man await-Keyword vergisst.

Wenn Promises auf Tasks treffen

-- cgit v1.2.3-54-g00ecf