Skip to content

docs: remind user executeJavaScript will not run immediately. - #19129

Merged
codebytere merged 1 commit into
electron:masterfrom
lvscar:patch-1
Jul 11, 2019
Merged

codebytere merged 1 commit into
electron:masterfrom
lvscar:patch-1

Conversation

@lvscar

@lvscar lvscar commented Jul 6, 2019 •

Copy link
Copy Markdown
Contributor

Remind user the contents.executeJavaScript() will not run their code immediately if the web page still in running. Without the knowledge, user would think their code not function properly and it's hard to debug because different page have different loading time.

According to web-contents.js

Description of Change

Checklist

  • PR description included and stakeholders cc'd
  • relevant documentation is changed or added
  • PR title follows semantic commit guidelines

Notes: none

Remind user the contents.executeJavaScript will not run their code immediately if the web page still in running.  Without the knowledge, user would think their code not function properly and it's hard to debug because different page have different loading time.

According to  [web-contents.js](https://github.com/electron/electron/blob/731edbe2b6a767ce5dab8b5760bc66c687b749cf/lib/browser/api/web-contents.js#L199)
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Jul 6, 2019
@welcome

welcome Bot commented Jul 6, 2019

Copy link
Copy Markdown

💖 Thanks for opening this pull request! 💖

We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix.

Examples of commit messages with semantic prefixes:

  • fix: don't overwrite prevent_default if default wasn't prevented
  • feat: add app.isPackaged() method
  • docs: app.isDefaultProtocolClient is now available on Linux

Things that will help get your PR across the finish line:

  • Follow the JavaScript, C++, and Python coding style.
  • Run npm run lint locally to catch formatting errors earlier.
  • Document any user-facing changes you've made following the documentation styleguide.
  • Include tests when adding/changing behavior.
  • Include screenshots and animated GIFs whenever possible.

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.

@lvscar lvscar changed the title docs: remind user the executeJavaScript will not run their code immediately docs: remind user executeJavaScript will not run immediately. Jul 6, 2019
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jul 7, 2019
Comment thread docs/api/web-contents.md Resolved
@codebytere
codebytere merged commit 6d34314 into electron:master Jul 11, 2019
@release-clerk

release-clerk Bot commented Jul 11, 2019

Copy link
Copy Markdown

No Release Notes

@welcome

welcome Bot commented Jul 11, 2019

Copy link
Copy Markdown

Congrats on merging your first pull request! 🎉🎉🎉

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants