Cannot import scripts from gist on Chrome: You must provide valid gist YAML or a valid gist url.
I cannot import scripts from gist on Chrome. After inserting the link, the first click of the button will not respond and the second click will result in an error message: "You must provide valid gist YAML or a valid gist url."
Bug Report
- Host: PowerPoint, Word on the web
- OS: Windows, MacOS
- Browser: Chrome
- Environment: prod
Expected behavior:
Successfully import the script and jump to the coding tab.
Actual behavior:
After inserting the link, the first click of the button will not respond and the second click will result in an error message: "You must provide valid gist YAML or a valid gist url."
Steps to Reproduce:
- Copy & paste https://gist.github.com/IvanaGyro/6e4eea78d24760211d127e9c67b2f335 to the import tab of Script Lab for PowerPoint.
- Click import -> not respond
- Click import again -> error message: "You must provide valid gist YAML or a valid gist url."
Failure Logs:
No error message in the console panel.
Screenshot:
More Information
This issue doesn't happen on FireFox.
Here is an workaround.
You can copy paste the raw YAML into the text box. By this method, you will be able to import the script. However, I will not be able to update the script on the gist.
Fixed in the latest version of Script Lab.