{"id":346,"date":"2016-04-07T14:41:06","date_gmt":"2016-04-07T14:41:06","guid":{"rendered":"https:\/\/www.turnoffthelights.com\/blog\/?p=346"},"modified":"2024-11-25T23:21:37","modified_gmt":"2024-11-25T22:21:37","slug":"edge-extension-get-options-page","status":"publish","type":"post","link":"https:\/\/www.turnoffthelights.com\/blog\/edge-extension-get-options-page\/","title":{"rendered":"Options page for the Turn Off the Lights Edge Extension"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/www.turnoffthelights.com\/blog\/wp-content\/uploads\/2016\/04\/turn-off-the-lights-edge-extension-options-page-1024x640.png\" alt=\"Edge extension options page button\" class=\"wp-image-350\" srcset=\"https:\/\/www.turnoffthelights.com\/blog\/wp-content\/uploads\/2016\/04\/turn-off-the-lights-edge-extension-options-page-1024x640.png 1024w, https:\/\/www.turnoffthelights.com\/blog\/wp-content\/uploads\/2016\/04\/turn-off-the-lights-edge-extension-options-page-300x188.png 300w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>The options page is now visible in Microsoft Edge! Microsoft released yesterday the new Windows 10 Insider build 14315 to all insiders. But what&#8217;s new in this build for the Extension developers?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Options page<\/h2>\n\n\n\n<p>As you read in <a href=\"https:\/\/www.turnoffthelights.com\/blog\/turn-off-lights-edge-extension-preview\/\" target=\"_blank\" rel=\"noreferrer noopener\">our previous post<\/a>, there was a workaround to open this page&nbsp;in your Edge web browser.&nbsp;Now the extension developers can open the Edge extension options page direct from the &#8220;extension&#8221; sidebar.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Translation<\/h2>\n\n\n\n<p>The first time we open our&nbsp;Options page, we saw&nbsp;no translations and only an empty text label. Because the Edge extension is a port of the Google Chrome extension, we found that the Chrome.i18n.getMessage doesn&#8217;t work to see our&nbsp;translation. That&#8217;s why we converted also here the&nbsp;<em>Chrome.i18n.getMessage<\/em>&nbsp;to the&nbsp;<em>browser.i18n.getMessage <\/em>JavaScript code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Debug<\/h2>\n\n\n\n<p>This time Microsoft Edge web browser allows you to debug the background page of the Edge extension. To open&nbsp;this debug window you see an extra link below the path of your extension.&nbsp;When you click on this link (Inspect &#8220;Background page&#8221;), you see the debug window.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Security<\/h2>\n\n\n\n<p>Are there any security issues in Microsoft Edge? Yes, that&#8217;s possible. When I add a YouTube &lt;iframe&gt; player inside our&nbsp;options page, the whole page refresh and then it crashes. Or when I&nbsp;open inside the &#8220;Turn Off the Lights&#8221; Options page the &#8220;TOtL Guide&#8221;, the same happens here. The whole page crash and go to this page:<\/p>\n\n\n\n<p><em>ms-appx-web:\/\/\/assets\/errorpages\/acr_error.htm#ms-browser-extension:\/\/MSGname_pczg5z86wrh92\/options.html<\/em><\/p>\n\n\n\n<p>Need the <a href=\"https:\/\/docs.microsoft.com\/en-us\/microsoft-edge\/extensions\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">roadmap of the Edge extension<\/a>?&nbsp;You can find it here on that&nbsp;page. And to learn what extension API is supported, see this <a href=\"https:\/\/docs.microsoft.com\/en-us\/microsoft-edge\/extensions\/\" target=\"_blank\" rel=\"noopener\">Microsoft Extension API page<\/a>.<\/p>\n\n\n\n<p>Want to test the new version of &#8220;Turn Off the Lights&#8221; with the Options page? Go to <a href=\"https:\/\/www.turnoffthelights.com\/browser\/edge\/\">www.turnoffthelights.com\/browser\/edge\/<\/a>\u00a0and click on the big blue download button to download the latest version\u00a0on your Windows 10 desktop computer or Surface.<br>This Turn Off the Lights version 3.2.0.12 only works on preview build 14316 and later. We make sure this extension comes online on day one. So you get the best night and video experience.\u00a0Please, if you like our work. Share it!\u00a0And\u00a0if you can make <a href=\"https:\/\/www.turnoffthelights.com\/donate\/\" target=\"_blank\" rel=\"noreferrer noopener\">a\u00a0donation<\/a> of any amount, we&#8217;d appreciate it immensely!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The options page is now visible in Microsoft Edge! Microsoft released yesterday the new Windows 10 Insider build 14315 to all insiders. But what&#8217;s new in this build for the Extension developers? Options page As you read in our previous post, there was a workaround to open this page&nbsp;in your Edge web browser.&nbsp;Now the extension [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-346","post","type-post","status-publish","format-standard","hentry","category-browser"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.turnoffthelights.com\/blog\/wp-json\/wp\/v2\/posts\/346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.turnoffthelights.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.turnoffthelights.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.turnoffthelights.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.turnoffthelights.com\/blog\/wp-json\/wp\/v2\/comments?post=346"}],"version-history":[{"count":3,"href":"https:\/\/www.turnoffthelights.com\/blog\/wp-json\/wp\/v2\/posts\/346\/revisions"}],"predecessor-version":[{"id":2677,"href":"https:\/\/www.turnoffthelights.com\/blog\/wp-json\/wp\/v2\/posts\/346\/revisions\/2677"}],"wp:attachment":[{"href":"https:\/\/www.turnoffthelights.com\/blog\/wp-json\/wp\/v2\/media?parent=346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.turnoffthelights.com\/blog\/wp-json\/wp\/v2\/categories?post=346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.turnoffthelights.com\/blog\/wp-json\/wp\/v2\/tags?post=346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}